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.00126/0.00126, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.002139/0.002139, allocations: 213.3 kB / 23.04 MB, free: 5.078 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.0282/0.0282, allocations: 3.941 MB / 317.2 MB, free: 15.33 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.00199/0.00199, allocations: 59.91 kB / 440.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09986, allocations: 54.15 MB / 494.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002348/0.1022, allocations: 0.8013 MB / 495.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008965/0.1031, allocations: 374.8 kB / 495.9 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.291e-05/0.1032, allocations: 0 / 495.9 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.1033, allocations: 7.875 kB / 495.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.198e-05/0.1033, allocations: 11.92 kB / 495.9 MB, free: 4.555 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.0005415/0.1039, allocations: 111.7 kB / 496 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.104, allocations: 63.77 kB / 496 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.1041, allocations: 8.188 kB / 496.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.311e-05/0.1042, allocations: 19.92 kB / 496.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.298e-05/0.1042, allocations: 35.78 kB / 496.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.1042, allocations: 4 kB / 496.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002759/0.1045, allocations: 123.8 kB / 496.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.1045, allocations: 19.92 kB / 496.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.1046, allocations: 27.81 kB / 496.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.1049, allocations: 127.5 kB / 496.4 MB, free: 4.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1049, allocations: 4 kB / 496.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.1049, allocations: 0 / 496.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1049, allocations: 0 / 496.4 MB, free: 4.016 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.0006247/0.1055, allocations: 314.9 kB / 496.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1055, allocations: 12.03 kB / 496.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.323e-05/0.1056, allocations: 192 / 496.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.1056, allocations: 34.75 kB / 496.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.1056, allocations: 8.891 kB / 496.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.1059, allocations: 142.3 kB / 496.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.1059, allocations: 4.375 kB / 496.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.1059, allocations: 8.375 kB / 496.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.1061, allocations: 84.41 kB / 497 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1061, allocations: 0 / 497 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1061, allocations: 0 / 497 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1061, allocations: 0 / 497 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.1062, allocations: 27.98 kB / 497 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006322/0.1069, allocations: 311.7 kB / 497.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.107, allocations: 50.56 kB / 497.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.945e-05/0.1071, allocations: 16.84 kB / 497.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.1071, allocations: 4 kB / 497.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001527/0.1072, allocations: 79.3 kB / 497.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.1072, allocations: 4 kB / 497.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002638/0.1075, allocations: 85.62 kB / 497.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.1075, allocations: 55.34 kB / 497.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.1077, allocations: 144.4 kB / 497.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1077, allocations: 29.7 kB / 497.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.352e-05/0.1077, allocations: 96.08 kB / 497.9 MB, free: 2.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.1078, allocations: 19.84 kB / 497.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.1078, allocations: 41.64 kB / 497.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.108, allocations: 322.8 kB / 498.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.536e-05/0.1081, allocations: 27.92 kB / 498.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.1082, allocations: 62 kB / 498.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.1085, allocations: 134.1 kB / 498.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1085, allocations: 4 kB / 498.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000263/0.1087, allocations: 125.4 kB / 498.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1088, allocations: 4 kB / 498.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1088, allocations: 4.156 kB / 498.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1088, allocations: 8 kB / 498.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.98e-05/0.1089, allocations: 12 kB / 498.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.1089, allocations: 15.86 kB / 498.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.195e-05/0.1089, allocations: 11.95 kB / 498.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1089, allocations: 4 kB / 498.7 MB, free: 1.52 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.0001584/0.1091, allocations: 133.8 kB / 498.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.1091, allocations: 11.95 kB / 498.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.1092, allocations: 16.3 kB / 498.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1092, allocations: 4 kB / 498.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.1092, allocations: 3.938 kB / 498.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1092, allocations: 0 / 498.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004603/0.1096, allocations: 317.6 kB / 499.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1096, allocations: 0 / 499.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.1097, allocations: 4 kB / 499.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1097, allocations: 3.938 kB / 499.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1097, allocations: 8 kB / 499.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1097, allocations: 0 / 499.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1097, allocations: 0 / 499.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.11, allocations: 199.4 kB / 499.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.448e-05/0.11, allocations: 7.984 kB / 499.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.11, allocations: 11.92 kB / 499.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.875e-05/0.1101, allocations: 0 / 499.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.1101, allocations: 4 kB / 499.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.1101, allocations: 12.05 kB / 499.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.1102, allocations: 99.27 kB / 499.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1102, allocations: 0 / 499.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1105, allocations: 31.94 kB / 499.5 MB, free: 0.5898 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,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.0008895/0.1114, allocations: 0.8155 MB / 0.4886 GB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.1116, allocations: 59.91 kB / 0.4887 GB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1116, allocations: 0 / 0.4887 GB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.646e-05/0.1117, allocations: 20.3 kB / 0.4887 GB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.112, allocations: 23.92 kB / 0.4887 GB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1138, allocations: 1.551 MB / 0.4902 GB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.1141, allocations: 0.6885 MB / 0.4909 GB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.306e-05/0.1141, allocations: 16.42 kB / 0.4909 GB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.062e-05/0.1142, allocations: 23.42 kB / 0.4909 GB, free: 13.26 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1142, allocations: 0 / 0.4909 GB, free: 13.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.1401, allocations: 2.941 MB / 0.4938 GB, free: 10.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.47, allocations: 10.88 kB / 0.4938 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 & /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.417433820955921] Failed to read output from testmodel.py, exit status != 0: 11.633681375999004 11.91625409 11.806504204 Calling exit ...