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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 194.9 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.179/1.179, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1147/0.1147, allocations: 3.885 MB / 294 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 59.91 kB / 355.1 MB, free: 3.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08096, allocations: 50.18 MB / 405.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.00185/0.08285, allocations: 0.8573 MB / 406.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006412/0.0835, allocations: 378.7 kB / 406.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.619e-05/0.08357, allocations: 0 / 406.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.413e-05/0.08366, allocations: 3.938 kB / 406.5 MB, free: 432 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.027e-05/0.08371, allocations: 15.91 kB / 406.5 MB, free: 416 kB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0003761/0.0841, allocations: 83.86 kB / 406.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.651e-05/0.08419, allocations: 51.86 kB / 406.6 MB, free: 280 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.665e-05/0.08428, allocations: 20.16 kB / 406.6 MB, free: 256 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.492e-05/0.08432, allocations: 27.86 kB / 406.7 MB, free: 228 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.928e-05/0.08436, allocations: 19.92 kB / 406.7 MB, free: 208 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.08438, allocations: 7.938 kB / 406.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.08453, allocations: 95.84 kB / 406.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.08456, allocations: 8 kB / 406.8 MB, free: 96 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.0846, allocations: 35.78 kB / 406.8 MB, free: 60 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.08479, allocations: 119.7 kB / 407 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.0848, allocations: 0 / 407 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0848, allocations: 0 / 407 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.08481, allocations: 0 / 407 MB, free: 15.94 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.0004667/0.08528, allocations: 383.6 kB / 407.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.08532, allocations: 8.031 kB / 407.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.08536, allocations: 34.75 kB / 407.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.0854, allocations: 12.84 kB / 407.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.08555, allocations: 192.2 kB / 407.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.08558, allocations: 8.375 kB / 407.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.08561, allocations: 8.281 kB / 407.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.08578, allocations: 77.97 kB / 407.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.0858, allocations: 0 / 407.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.08581, allocations: 4 kB / 407.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.08582, allocations: 0 / 407.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.697e-05/0.08592, allocations: 31.92 kB / 407.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.0865, allocations: 340.7 kB / 408 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.08671, allocations: 50.62 kB / 408.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.898e-05/0.08677, allocations: 20.84 kB / 408.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.08679, allocations: 0 / 408.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.08694, allocations: 75.33 kB / 408.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.08695, allocations: 0 / 408.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002553/0.08721, allocations: 97.56 kB / 408.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.08726, allocations: 51.41 kB / 408.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.08738, allocations: 144.3 kB / 408.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.0874, allocations: 25.7 kB / 408.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.08745, allocations: 96.05 kB / 408.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.08748, allocations: 23.72 kB / 408.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.08753, allocations: 41.7 kB / 408.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.08764, allocations: 314.8 kB / 408.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.044e-05/0.0877, allocations: 23.92 kB / 409 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.79e-05/0.0878, allocations: 73.98 kB / 409 MB, free: 13.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.08807, allocations: 121.8 kB / 409.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.08808, allocations: 0 / 409.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002077/0.08829, allocations: 133.6 kB / 409.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.08832, allocations: 8 kB / 409.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.08833, allocations: 3.938 kB / 409.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.08834, allocations: 4 kB / 409.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.581e-05/0.08842, allocations: 19.92 kB / 409.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.08844, allocations: 8.328 kB / 409.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.597e-05/0.0885, allocations: 7.906 kB / 409.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.08851, allocations: 8 kB / 409.4 MB, free: 13.27 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.0001152/0.08863, allocations: 134.4 kB / 409.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.08866, allocations: 7.906 kB / 409.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.08869, allocations: 12.38 kB / 409.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.08869, allocations: 0 / 409.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.0887, allocations: 3.938 kB / 409.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.08871, allocations: 0 / 409.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.08911, allocations: 354.4 kB / 409.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.08913, allocations: 0 / 409.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-05/0.08919, allocations: 11.98 kB / 409.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.0892, allocations: 0 / 409.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.08921, allocations: 3.938 kB / 409.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.08922, allocations: 4 kB / 409.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.08923, allocations: 0 / 409.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.08948, allocations: 199.3 kB / 410.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.08953, allocations: 85.05 kB / 410.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.08955, allocations: 3.938 kB / 410.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.849e-05/0.08963, allocations: 8.062 kB / 410.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.349e-05/0.08967, allocations: 3.984 kB / 410.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.08969, allocations: 8 kB / 410.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.981e-05/0.08975, allocations: 98.08 kB / 410.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08975, allocations: 0 / 410.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.09003, allocations: 40.11 kB / 410.3 MB, free: 12.21 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.0007801/0.09082, allocations: 0.8175 MB / 411.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001881/0.09102, allocations: 68.22 kB / 411.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09103, allocations: 0 / 411.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.682e-05/0.0911, allocations: 31.86 kB / 411.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.09137, allocations: 11.98 kB / 411.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.09287, allocations: 1.554 MB / 412.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.0931, allocations: 0.6922 MB / 413.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.884e-05/0.09316, allocations: 12.42 kB / 413.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.973e-05/0.0932, allocations: 23.42 kB / 413.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09321, allocations: 0 / 413.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01301/0.1062, allocations: 2.58 MB / 416.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.1065, allocations: 223.8 kB / 416.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.75, allocations: 0 / 416.3 MB, free: 6.125 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)