Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002428/0.002428, allocations: 211.6 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.576/1.576, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.02882/0.02882, allocations: 3.94 MB / 316.4 MB, free: 15.13 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AdvancedNoise.Examples.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 63.91 kB / 439.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1067, allocations: 54.16 MB / 493.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002098/0.1088, allocations: 0.7663 MB / 494.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007944/0.1096, allocations: 358.8 kB / 495 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.176e-05/0.1096, allocations: 4 kB / 495 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1097, allocations: 7.875 kB / 495 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.806e-05/0.1098, allocations: 7.922 kB / 495 MB, free: 4.289 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.1103, allocations: 111.6 kB / 495.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1104, allocations: 55.78 kB / 495.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.389e-05/0.1105, allocations: 16.16 kB / 495.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.011e-05/0.1105, allocations: 27.94 kB / 495.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.26e-05/0.1106, allocations: 23.84 kB / 495.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.1106, allocations: 8 kB / 495.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.1109, allocations: 115.8 kB / 495.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.1109, allocations: 19.92 kB / 495.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.1109, allocations: 15.92 kB / 495.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.1112, allocations: 127.5 kB / 495.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1112, allocations: 4 kB / 495.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1112, allocations: 0 / 495.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1112, allocations: 0 / 495.5 MB, free: 3.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005356/0.1117, allocations: 326.8 kB / 495.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1117, allocations: 8.031 kB / 495.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.841e-05/0.1118, allocations: 38.75 kB / 495.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.1118, allocations: 8.891 kB / 495.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.112, allocations: 130.4 kB / 496 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.1121, allocations: 4.375 kB / 496 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.1121, allocations: 12.33 kB / 496 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.1123, allocations: 73.97 kB / 496.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1123, allocations: 0 / 496.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.1123, allocations: 3.984 kB / 496.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.1123, allocations: 8 kB / 496.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.1124, allocations: 31.98 kB / 496.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.1131, allocations: 295.7 kB / 496.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.1132, allocations: 54.55 kB / 496.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.412e-05/0.1133, allocations: 16.92 kB / 496.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-06/0.1133, allocations: 0 / 496.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001668/0.1135, allocations: 83.28 kB / 496.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1135, allocations: 0 / 496.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002611/0.1137, allocations: 93.62 kB / 496.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.1138, allocations: 55.41 kB / 496.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1139, allocations: 142.8 kB / 496.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.1139, allocations: 29.7 kB / 496.9 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.114, allocations: 96.08 kB / 497 MB, free: 2.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.114, allocations: 23.8 kB / 497 MB, free: 2.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.297e-05/0.1141, allocations: 33.7 kB / 497 MB, free: 2.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1143, allocations: 322.8 kB / 497.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.825e-05/0.1144, allocations: 23.98 kB / 497.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.1145, allocations: 77.86 kB / 497.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.1148, allocations: 121.9 kB / 497.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1148, allocations: 4 kB / 497.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000239/0.1151, allocations: 125.4 kB / 497.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1151, allocations: 4 kB / 497.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1151, allocations: 4 kB / 497.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1151, allocations: 8.156 kB / 497.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.726e-05/0.1152, allocations: 12 kB / 497.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.1152, allocations: 11.92 kB / 497.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.1152, allocations: 11.95 kB / 497.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1153, allocations: 4 kB / 497.7 MB, free: 1.277 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: faultTrigger.F:VARIABLE(min = 0.0 max = 1.0 fixed = true stateSelect=StateSelect.always ) \"The current probability to have failed already\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.faultTrigger.y,$whenCondition1,countFaults.y,$PRE.countFaults.y,globalSeed.id_impure,globalSeed.seed,faultTrigger.y,faultTrigger.r,$whenCondition2,one.y,faultTrigger.reset,countFaults.local_set,countFaults.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.1154, allocations: 133.7 kB / 497.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.1154, allocations: 7.953 kB / 497.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.1155, allocations: 8.359 kB / 497.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1155, allocations: 8 kB / 497.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1155, allocations: 3.938 kB / 497.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1155, allocations: 0 / 497.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.116, allocations: 317.6 kB / 498.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.116, allocations: 0 / 498.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.772e-05/0.116, allocations: 4 kB / 498.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.116, allocations: 0 / 498.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.116, allocations: 3.938 kB / 498.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.116, allocations: 4 kB / 498.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.116, allocations: 0 / 498.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.1163, allocations: 195.9 kB / 498.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.698e-05/0.1164, allocations: 15.95 kB / 498.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.1164, allocations: 11.92 kB / 498.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.678e-05/0.1164, allocations: 4 kB / 498.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.1165, allocations: 11.98 kB / 498.5 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.1165, allocations: 0 / 498.5 MB, free: 496 kB / 350.1 MB Notification: Performance of sorting global known variables: time 8.873e-05/0.1166, allocations: 96.81 kB / 498.6 MB, free: 400 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1166, allocations: 3.938 kB / 498.6 MB, free: 396 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.1169, allocations: 35.94 kB / 498.6 MB, free: 360 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (faultTrigger.F) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,countFaults.y,faultTrigger.r,faultTrigger.y) * Number of discrete states: 2 (faultTrigger.y,countFaults.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009708/0.1179, allocations: 0.8238 MB / 499.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.1181, allocations: 67.78 kB / 499.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1181, allocations: 0 / 499.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.593e-05/0.1182, allocations: 24.3 kB / 499.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.1185, allocations: 16.08 kB / 499.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.1203, allocations: 1.545 MB / 0.4893 GB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.046e-05/0.1204, allocations: 75.33 kB / 0.4894 GB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.555e-05/0.1205, allocations: 16.41 kB / 0.4894 GB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.684e-05/0.1205, allocations: 23.42 kB / 0.4894 GB, free: 13.64 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1205, allocations: 4 kB / 0.4894 GB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/0.1517, allocations: 3.311 MB / 0.4927 GB, free: 10.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.65, allocations: 10.67 kB / 0.4927 GB, free: 10.46 MB / 366.1 MB " [Timeout remaining time 648] (rm -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.FaultTrigger_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.517439145129174] Failed to read output from testmodel.py, exit status != 0: 11.765726539306343 11.78315862 11.668806763 Calling exit ...