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.001789/0.001789, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002289/0.002289, allocations: 211.1 kB / 22.24 MB, free: 5.262 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.593/1.593, allocations: 230.6 MB / 256 MB, free: 7.773 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.02783/0.02783, allocations: 3.939 MB / 316.4 MB, free: 15.11 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.002036/0.002036, allocations: 63.89 kB / 439.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.111, allocations: 54.15 MB / 493.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002117/0.1131, allocations: 0.7846 MB / 494.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008092/0.114, allocations: 354.8 kB / 495 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.388e-05/0.114, allocations: 3.938 kB / 495 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.592e-05/0.1141, allocations: 7.875 kB / 495 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.015e-05/0.1142, allocations: 11.92 kB / 495 MB, free: 4.25 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.0004713/0.1146, allocations: 103.7 kB / 495.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.1147, allocations: 63.78 kB / 495.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.255e-05/0.1148, allocations: 8.172 kB / 495.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.048e-05/0.1149, allocations: 23.92 kB / 495.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.951e-05/0.1149, allocations: 31.84 kB / 495.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.1149, allocations: 4 kB / 495.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002525/0.1152, allocations: 119.8 kB / 495.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.1152, allocations: 15.92 kB / 495.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.669e-05/0.1152, allocations: 19.92 kB / 495.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1155, allocations: 127.5 kB / 495.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1155, allocations: 0 / 495.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1155, allocations: 0 / 495.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1155, allocations: 0 / 495.5 MB, free: 3.738 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.0005273/0.116, allocations: 322.8 kB / 495.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1161, allocations: 12.03 kB / 495.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.729e-05/0.1161, allocations: 34.75 kB / 495.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/0.1161, allocations: 8.891 kB / 495.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.1164, allocations: 138.4 kB / 496 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.1164, allocations: 384 / 496 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.1164, allocations: 16.33 kB / 496 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.1166, allocations: 73.97 kB / 496.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.1166, allocations: 0 / 496.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1166, allocations: 4 kB / 496.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1166, allocations: 0 / 496.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.1167, allocations: 31.98 kB / 496.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006471/0.1174, allocations: 299.7 kB / 496.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.1175, allocations: 46.62 kB / 496.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.311e-05/0.1176, allocations: 20.84 kB / 496.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.1176, allocations: 0 / 496.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.1178, allocations: 75.36 kB / 496.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1178, allocations: 0 / 496.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002707/0.1181, allocations: 97.55 kB / 496.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.1181, allocations: 55.34 kB / 496.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1182, allocations: 147 kB / 496.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.1183, allocations: 33.7 kB / 496.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.476e-05/0.1183, allocations: 92.08 kB / 497 MB, free: 2.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.1184, allocations: 23.8 kB / 497 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/0.1184, allocations: 33.7 kB / 497 MB, free: 2.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1186, allocations: 322.8 kB / 497.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.139e-05/0.1186, allocations: 23.98 kB / 497.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.1188, allocations: 67.34 kB / 497.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.1191, allocations: 137.8 kB / 497.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1191, allocations: 0 / 497.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000249/0.1193, allocations: 133.4 kB / 497.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1193, allocations: 4 kB / 497.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1194, allocations: 0 / 497.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1194, allocations: 4 kB / 497.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.095e-05/0.1194, allocations: 16 kB / 497.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1195, allocations: 12.08 kB / 497.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.476e-05/0.1195, allocations: 11.95 kB / 497.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.1195, allocations: 8 kB / 497.8 MB, free: 1.242 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.0001778/0.1197, allocations: 133.7 kB / 497.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.1197, allocations: 7.953 kB / 497.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.1198, allocations: 12.36 kB / 497.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1198, allocations: 0 / 497.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1198, allocations: 3.938 kB / 497.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1198, allocations: 4 kB / 497.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.1202, allocations: 313.6 kB / 498.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1202, allocations: 4 kB / 498.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.902e-05/0.1203, allocations: 4 kB / 498.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1203, allocations: 0 / 498.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.1203, allocations: 3.938 kB / 498.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1203, allocations: 0 / 498.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1203, allocations: 0 / 498.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.1206, allocations: 195.9 kB / 498.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.593e-05/0.1206, allocations: 7.984 kB / 498.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.1206, allocations: 11.98 kB / 498.4 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.1207, allocations: 4 kB / 498.4 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.1207, allocations: 11.92 kB / 498.5 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1208, allocations: 4 kB / 498.5 MB, free: 468 kB / 350.1 MB Notification: Performance of sorting global known variables: time 7.365e-05/0.1208, allocations: 101.7 kB / 498.6 MB, free: 368 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1208, allocations: 0 / 498.6 MB, free: 368 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.1211, allocations: 39.88 kB / 498.6 MB, free: 328 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.0009721/0.1221, allocations: 0.8274 MB / 499.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001971/0.1223, allocations: 63.84 kB / 499.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1223, allocations: 0 / 499.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.664e-05/0.1224, allocations: 19.98 kB / 499.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.1226, allocations: 12.3 kB / 499.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.1245, allocations: 1.547 MB / 0.4893 GB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.8e-05/0.1246, allocations: 75.33 kB / 0.4894 GB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.654e-05/0.1247, allocations: 16.41 kB / 0.4894 GB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.1247, allocations: 27.42 kB / 0.4894 GB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1247, allocations: 0 / 0.4894 GB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.1558, allocations: 3.318 MB / 0.4927 GB, free: 10.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.43, allocations: 8.047 kB / 0.4927 GB, free: 10.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_FaultTrigger_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.22705302014947] Failed to read output from testmodel.py, exit status != 0: 11.534399047959596 11.552770567 11.434095183 Calling exit ...