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.001245/0.001245, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001482/0.001482, allocations: 220.4 kB / 23.03 MB, free: 4.945 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.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.02787/0.02787, allocations: 3.945 MB / 317.2 MB, free: 15.15 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AdvancedNoise requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 63.91 kB / 440.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1105, allocations: 54.15 MB / 494.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002148/0.1127, allocations: 0.7807 MB / 495.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008772/0.1136, allocations: 354.8 kB / 495.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.617e-05/0.1136, allocations: 0 / 495.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.1137, allocations: 11.88 kB / 495.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.28e-05/0.1138, allocations: 11.88 kB / 495.8 MB, free: 4.32 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.0005401/0.1143, allocations: 107.7 kB / 495.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.1145, allocations: 59.78 kB / 495.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1146, allocations: 12.17 kB / 495.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.62e-05/0.1146, allocations: 23.92 kB / 496 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.583e-05/0.1147, allocations: 23.86 kB / 496 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.1147, allocations: 4 kB / 496 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.115, allocations: 131.8 kB / 496.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.115, allocations: 19.91 kB / 496.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.263e-05/0.1151, allocations: 19.88 kB / 496.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.1153, allocations: 119.6 kB / 496.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1153, allocations: 8 kB / 496.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1153, allocations: 4 kB / 496.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1154, allocations: 0 / 496.3 MB, free: 3.793 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.0006131/0.116, allocations: 317.8 kB / 496.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.116, allocations: 12.02 kB / 496.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.473e-05/0.116, allocations: 4.188 kB / 496.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.1161, allocations: 34.75 kB / 496.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.1161, allocations: 8.891 kB / 496.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1164, allocations: 142.3 kB / 496.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.1164, allocations: 4.375 kB / 496.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.1164, allocations: 12.38 kB / 496.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.1166, allocations: 69.8 kB / 496.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1166, allocations: 3.984 kB / 496.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1166, allocations: 8 kB / 496.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1166, allocations: 0 / 496.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.1167, allocations: 31.92 kB / 496.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006968/0.1174, allocations: 295.8 kB / 497.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.1176, allocations: 46.62 kB / 497.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.209e-05/0.1177, allocations: 16.84 kB / 497.3 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.1177, allocations: 11.94 kB / 497.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001549/0.1179, allocations: 67.39 kB / 497.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.1179, allocations: 0 / 497.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002867/0.1181, allocations: 93.59 kB / 497.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.1182, allocations: 59.34 kB / 497.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1183, allocations: 137.8 kB / 497.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1184, allocations: 29.7 kB / 497.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.433e-05/0.1184, allocations: 100 kB / 497.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/0.1184, allocations: 19.86 kB / 497.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/0.1185, allocations: 41.58 kB / 497.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1187, allocations: 322.8 kB / 498.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.71e-05/0.1187, allocations: 27.98 kB / 498.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1188, allocations: 68.53 kB / 498.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.1192, allocations: 129.8 kB / 498.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1192, allocations: 0 / 498.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002522/0.1194, allocations: 125.8 kB / 498.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1194, allocations: 8 kB / 498.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1195, allocations: 3.984 kB / 498.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1195, allocations: 4 kB / 498.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.219e-05/0.1195, allocations: 15.94 kB / 498.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1196, allocations: 7.938 kB / 498.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.577e-05/0.1196, allocations: 15.94 kB / 498.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.1196, allocations: 4 kB / 498.5 MB, free: 1.305 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.0001688/0.1198, allocations: 133.9 kB / 498.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.1198, allocations: 11.98 kB / 498.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.1199, allocations: 16.36 kB / 498.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1199, allocations: 3.938 kB / 498.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1199, allocations: 3.938 kB / 498.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1199, allocations: 0 / 498.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004733/0.1203, allocations: 313.6 kB / 499 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1203, allocations: 0 / 499 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.072e-05/0.1204, allocations: 4 kB / 499 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1204, allocations: 7.938 kB / 499 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.1204, allocations: 4 kB / 499 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1204, allocations: 0 / 499 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1204, allocations: 0 / 499 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.1207, allocations: 199.4 kB / 499.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.277e-05/0.1207, allocations: 3.953 kB / 499.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.1208, allocations: 7.969 kB / 499.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.591e-05/0.1208, allocations: 7.984 kB / 499.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.1209, allocations: 7.938 kB / 499.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.1209, allocations: 7.984 kB / 499.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.739e-05/0.121, allocations: 99.27 kB / 499.4 MB, free: 420 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.121, allocations: 4.062 kB / 499.4 MB, free: 416 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1213, allocations: 35.94 kB / 499.4 MB, free: 380 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.0009681/0.1222, allocations: 0.8239 MB / 0.4885 GB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002182/0.1224, allocations: 59.91 kB / 0.4886 GB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1224, allocations: 0 / 0.4886 GB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.28e-05/0.1225, allocations: 27.92 kB / 0.4886 GB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1228, allocations: 8 kB / 0.4886 GB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.1247, allocations: 1.545 MB / 0.4901 GB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.706e-05/0.1248, allocations: 79.33 kB / 0.4902 GB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.66e-05/0.1248, allocations: 16.36 kB / 0.4902 GB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.1249, allocations: 23.42 kB / 0.4902 GB, free: 13.67 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1249, allocations: 0 / 0.4902 GB, free: 13.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.1504, allocations: 2.985 MB / 0.4931 GB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.8, allocations: 4.062 kB / 0.4931 GB, free: 10.84 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.576242570066825] Failed to read output from testmodel.py, exit status != 0: 11.970364841981791 11.995382619 11.876708771 Calling exit ...