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.001466/0.001466, allocations: 103 kB / 16.45 MB, free: 6.5 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.001425/0.001425, allocations: 212.9 kB / 19.42 MB, free: 3.66 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.498/1.498, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.02827/0.02827, allocations: 3.926 MB / 312.8 MB, free: 0.5117 MB / 238.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.002003/0.002003, allocations: 63.91 kB / 434.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1099, allocations: 54.11 MB / 488.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002324/0.1123, allocations: 0.7846 MB / 489.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008007/0.1131, allocations: 362.8 kB / 489.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.401e-05/0.1131, allocations: 7.938 kB / 489.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.269e-05/0.1132, allocations: 11.86 kB / 489.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.294e-05/0.1133, allocations: 7.875 kB / 489.8 MB, free: 7.301 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.0004552/0.1137, allocations: 103.7 kB / 489.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.1138, allocations: 55.91 kB / 490 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.571e-05/0.1139, allocations: 8.188 kB / 490 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.954e-05/0.114, allocations: 31.84 kB / 490 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.909e-05/0.114, allocations: 27.86 kB / 490 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.1141, allocations: 4 kB / 490 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.1143, allocations: 95.83 kB / 490.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.1143, allocations: 15.98 kB / 490.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.282e-05/0.1143, allocations: 27.8 kB / 490.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.1146, allocations: 123.9 kB / 490.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1146, allocations: 0 / 490.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1146, allocations: 0 / 490.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1146, allocations: 4 kB / 490.3 MB, free: 6.809 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.0006385/0.1152, allocations: 387 kB / 490.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1153, allocations: 15.98 kB / 490.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.1153, allocations: 42.67 kB / 490.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.1154, allocations: 8.891 kB / 490.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.1156, allocations: 184.3 kB / 490.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.1156, allocations: 4.375 kB / 490.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.1156, allocations: 8.375 kB / 490.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.1158, allocations: 77.97 kB / 491 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1158, allocations: 0 / 491 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1159, allocations: 0 / 491 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1159, allocations: 7.984 kB / 491 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.116, allocations: 31.92 kB / 491.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000708/0.1167, allocations: 340.7 kB / 491.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.1169, allocations: 58.61 kB / 491.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.037e-05/0.117, allocations: 16.8 kB / 491.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-06/0.117, allocations: 0 / 491.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.1171, allocations: 71.38 kB / 491.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.1171, allocations: 0 / 491.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003084/0.1174, allocations: 93.62 kB / 491.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.1175, allocations: 55.34 kB / 491.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1176, allocations: 153.6 kB / 491.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.1177, allocations: 33.69 kB / 491.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.1177, allocations: 100 kB / 492 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.1178, allocations: 19.86 kB / 492 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.1178, allocations: 33.7 kB / 492 MB, free: 4.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.118, allocations: 322.8 kB / 492.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.051e-05/0.1181, allocations: 19.98 kB / 492.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1182, allocations: 71.41 kB / 492.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.1185, allocations: 117.9 kB / 492.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1185, allocations: 0 / 492.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002713/0.1188, allocations: 133.8 kB / 492.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1188, allocations: 4 kB / 492.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1188, allocations: 4.078 kB / 492.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1189, allocations: 0 / 492.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.703e-05/0.119, allocations: 23.92 kB / 492.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.119, allocations: 7.922 kB / 492.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.277e-05/0.119, allocations: 24.05 kB / 492.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.119, allocations: 4 kB / 492.7 MB, free: 4.109 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 ) \"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.r,faultTrigger.y,$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.0001753/0.1192, allocations: 126.4 kB / 492.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.1192, allocations: 7.953 kB / 492.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.99e-05/0.1193, allocations: 8.375 kB / 492.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1193, allocations: 0 / 492.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.1193, allocations: 7.875 kB / 492.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1193, allocations: 4 kB / 492.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005515/0.1198, allocations: 342.6 kB / 493.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1198, allocations: 0 / 493.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.295e-05/0.1199, allocations: 4 kB / 493.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.1199, allocations: 4 kB / 493.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1199, allocations: 11.86 kB / 493.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1199, allocations: 0 / 493.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1199, allocations: 0 / 493.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.1202, allocations: 207.4 kB / 493.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.1203, allocations: 81.06 kB / 493.5 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.1203, allocations: 7.984 kB / 493.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.707e-05/0.1204, allocations: 8.016 kB / 493.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.567e-05/0.1204, allocations: 11.98 kB / 493.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1204, allocations: 0 / 493.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.1205, allocations: 102 kB / 493.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1205, allocations: 0 / 493.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.1208, allocations: 43.98 kB / 493.7 MB, free: 3.055 MB / 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,faultTrigger.y,faultTrigger.r,countFaults.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.0009756/0.1218, allocations: 0.8077 MB / 494.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.122, allocations: 63.89 kB / 494.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.122, allocations: 4 kB / 494.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.154e-05/0.1221, allocations: 23.92 kB / 494.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.1224, allocations: 11.98 kB / 494.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.1243, allocations: 1.55 MB / 496.1 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1247, allocations: 0.6924 MB / 496.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.65e-05/0.1248, allocations: 12.36 kB / 496.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.43e-05/0.1248, allocations: 23.44 kB / 496.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1248, allocations: 4 kB / 496.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.1539, allocations: 2.722 MB / 499.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.784/8.938, allocations: 21.42 kB / 499.6 MB, free: 13.06 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.58857494383119] Failed to read output from testmodel.py, exit status != 0: 9.016352877020836 9.040044831 8.92121483 Calling exit ...