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.001703/0.001703, allocations: 116.1 kB / 17.17 MB, free: 6 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.001508/0.001508, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.587/1.587, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.02695/0.02695, allocations: 3.924 MB / 313.5 MB, free: 2.125 MB / 238.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.002001/0.002001, allocations: 59.17 kB / 435.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09894, allocations: 54.1 MB / 489.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002176/0.1011, allocations: 0.7782 MB / 490.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007299/0.1018, allocations: 370.1 kB / 490.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.784e-05/0.1019, allocations: 1.438 kB / 490.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.102, allocations: 13.56 kB / 490.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.249e-05/0.1021, allocations: 11.91 kB / 490.5 MB, free: 12.43 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.0004469/0.1025, allocations: 101.2 kB / 490.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.1026, allocations: 53.62 kB / 490.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.543e-05/0.1027, allocations: 17.59 kB / 490.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.947e-05/0.1027, allocations: 24.78 kB / 490.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.397e-05/0.1028, allocations: 29.19 kB / 490.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.1028, allocations: 5.406 kB / 490.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.103, allocations: 91.27 kB / 490.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.103, allocations: 18.36 kB / 490.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.577e-05/0.103, allocations: 34.64 kB / 490.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.1032, allocations: 125.3 kB / 491 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1032, allocations: 0 / 491 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1032, allocations: 0 / 491 MB, free: 12.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1032, allocations: 1.375 kB / 491 MB, free: 12.1 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.0004497/0.1037, allocations: 387.7 kB / 491.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1037, allocations: 9.625 kB / 491.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.18e-05/0.1037, allocations: 1.562 kB / 491.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.457e-05/0.1038, allocations: 37.5 kB / 491.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.1038, allocations: 17.02 kB / 491.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.104, allocations: 195 kB / 491.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.104, allocations: 4.5 kB / 491.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.1041, allocations: 8.5 kB / 491.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.1042, allocations: 78.41 kB / 491.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1042, allocations: 3.984 kB / 491.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.1042, allocations: 5.375 kB / 491.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1043, allocations: 1.375 kB / 491.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.1044, allocations: 24.48 kB / 491.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005673/0.1049, allocations: 340.1 kB / 492.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.1051, allocations: 45.38 kB / 492.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.801e-05/0.1051, allocations: 18.97 kB / 492.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.1052, allocations: 5.156 kB / 492.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000132/0.1053, allocations: 66.52 kB / 492.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.1053, allocations: 3.938 kB / 492.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002687/0.1056, allocations: 101 kB / 492.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.1056, allocations: 56.81 kB / 492.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.892e-05/0.1057, allocations: 143.1 kB / 492.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1057, allocations: 26.98 kB / 492.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.1057, allocations: 99.47 kB / 492.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.1057, allocations: 23.34 kB / 492.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.1058, allocations: 36.89 kB / 492.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.128e-05/0.1058, allocations: 321.4 kB / 493 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.451e-05/0.1059, allocations: 20.12 kB / 493 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.59e-05/0.106, allocations: 70.86 kB / 493.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.1063, allocations: 114.8 kB / 493.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1063, allocations: 0 / 493.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000218/0.1065, allocations: 135.8 kB / 493.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.1065, allocations: 9 kB / 493.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1065, allocations: 3.25 kB / 493.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1065, allocations: 1.25 kB / 493.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.173e-05/0.1066, allocations: 18.95 kB / 493.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1066, allocations: 6.094 kB / 493.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.1067, allocations: 19.81 kB / 493.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.1067, allocations: 5.344 kB / 493.4 MB, free: 9.828 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.0001159/0.1068, allocations: 127.6 kB / 493.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.1068, allocations: 10.33 kB / 493.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.548e-05/0.1069, allocations: 6.188 kB / 493.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1069, allocations: 0.7812 kB / 493.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.1069, allocations: 9.328 kB / 493.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1069, allocations: 0 / 493.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003609/0.1072, allocations: 346.1 kB / 493.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1072, allocations: 0 / 493.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.061e-05/0.1073, allocations: 15.61 kB / 493.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1073, allocations: 5.062 kB / 493.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.1073, allocations: 4.938 kB / 493.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1073, allocations: 0 / 493.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1073, allocations: 2.031 kB / 493.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.1075, allocations: 201 kB / 494.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.281e-05/0.1076, allocations: 83.69 kB / 494.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.1076, allocations: 5.219 kB / 494.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-05/0.1076, allocations: 17.17 kB / 494.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.1077, allocations: 2.562 kB / 494.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.1077, allocations: 3.781 kB / 494.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.272e-05/0.1077, allocations: 102.3 kB / 494.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1077, allocations: 0 / 494.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1081, allocations: 42.3 kB / 494.4 MB, free: 8.93 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.000687/0.1087, allocations: 0.8041 MB / 495.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001918/0.1089, allocations: 69.28 kB / 495.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1089, allocations: 0 / 495.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.301e-05/0.109, allocations: 20.36 kB / 495.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.1093, allocations: 13.91 kB / 495.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.1105, allocations: 1.557 MB / 496.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.1106, allocations: 0.6948 MB / 497.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.941e-05/0.1107, allocations: 11.64 kB / 497.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.1107, allocations: 23.64 kB / 497.6 MB, free: 5.973 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1107, allocations: 0 / 497.6 MB, free: 5.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.1328, allocations: 2.773 MB / 0.4886 GB, free: 3.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.517/8.65, allocations: 8 kB / 0.4886 GB, free: 3.785 MB / 350.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 & /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: 11.483867311966605] Failed to read output from testmodel.py, exit status != 0: 8.780891814036295 8.794772175 8.688516492 Calling exit ...