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.001357/0.001357, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001618/0.001618, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.219/1.219, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1187/0.1187, allocations: 3.887 MB / 293.8 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 63.91 kB / 354.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07706/0.07818, allocations: 50.19 MB / 405.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001754/0.07997, allocations: 0.8464 MB / 405.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006228/0.08061, allocations: 378.8 kB / 406.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.08067, allocations: 11.94 kB / 406.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.493e-05/0.08075, allocations: 7.922 kB / 406.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.221e-05/0.08079, allocations: 3.938 kB / 406.3 MB, free: 0.5312 MB / 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.0003127/0.08111, allocations: 87.78 kB / 406.4 MB, free: 456 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.308e-05/0.08119, allocations: 51.91 kB / 406.4 MB, free: 404 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.004e-05/0.08127, allocations: 8.188 kB / 406.5 MB, free: 392 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.752e-05/0.08131, allocations: 27.84 kB / 406.5 MB, free: 364 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.546e-05/0.08135, allocations: 23.92 kB / 406.5 MB, free: 340 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.08137, allocations: 4 kB / 406.5 MB, free: 336 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.08152, allocations: 87.84 kB / 406.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.08154, allocations: 11.94 kB / 406.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.08158, allocations: 27.8 kB / 406.6 MB, free: 208 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000161/0.08175, allocations: 111.7 kB / 406.7 MB, free: 96 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.08176, allocations: 0 / 406.7 MB, free: 96 kB / 334.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.08176, allocations: 4 kB / 406.7 MB, free: 92 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.635e-06/0.08177, allocations: 0 / 406.7 MB, free: 92 kB / 334.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.0004425/0.08222, allocations: 391.6 kB / 407.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.08226, allocations: 12.03 kB / 407.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.08229, allocations: 38.75 kB / 407.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.914e-05/0.08233, allocations: 8.844 kB / 407.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.08247, allocations: 188.2 kB / 407.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.0825, allocations: 4.375 kB / 407.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.08252, allocations: 12.28 kB / 407.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.08268, allocations: 73.97 kB / 407.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-06/0.08269, allocations: 3.938 kB / 407.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.08271, allocations: 4 kB / 407.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.08272, allocations: 4 kB / 407.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.433e-05/0.08282, allocations: 27.98 kB / 407.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.08336, allocations: 332.6 kB / 407.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.08352, allocations: 50.62 kB / 407.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.08358, allocations: 20.84 kB / 407.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.08359, allocations: 7.984 kB / 407.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/0.08374, allocations: 79.31 kB / 408 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.08375, allocations: 0 / 408 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002281/0.08399, allocations: 97.55 kB / 408.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.08403, allocations: 51.41 kB / 408.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.472e-05/0.08413, allocations: 147.7 kB / 408.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.08415, allocations: 33.7 kB / 408.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.08421, allocations: 92.05 kB / 408.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.08423, allocations: 19.8 kB / 408.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.08427, allocations: 33.7 kB / 408.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.08437, allocations: 322.8 kB / 408.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.137e-05/0.08444, allocations: 23.94 kB / 408.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.489e-05/0.08453, allocations: 65.98 kB / 408.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.08479, allocations: 125.8 kB / 409 MB, free: 13.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.0848, allocations: 0 / 409 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002153/0.08502, allocations: 129.4 kB / 409.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.08503, allocations: 4 kB / 409.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.08504, allocations: 4 kB / 409.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/0.08506, allocations: 0 / 409.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.63e-05/0.08514, allocations: 19.98 kB / 409.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.08515, allocations: 7.875 kB / 409.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.988e-05/0.08522, allocations: 19.84 kB / 409.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.08523, allocations: 7.984 kB / 409.2 MB, free: 13.4 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.0001097/0.08535, allocations: 130.6 kB / 409.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.08537, allocations: 7.906 kB / 409.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.228e-05/0.08539, allocations: 8.375 kB / 409.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.0854, allocations: 0 / 409.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.08541, allocations: 3.938 kB / 409.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.08541, allocations: 3.984 kB / 409.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.08581, allocations: 350.5 kB / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.08582, allocations: 0 / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.756e-05/0.08588, allocations: 7.984 kB / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.08589, allocations: 4 kB / 409.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.0859, allocations: 7.938 kB / 409.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.08591, allocations: 0 / 409.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.08591, allocations: 0 / 409.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002354/0.08615, allocations: 195.8 kB / 409.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.0862, allocations: 85.08 kB / 409.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.08622, allocations: 11.97 kB / 410 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.014e-05/0.0863, allocations: 7.984 kB / 410 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.08633, allocations: 4 kB / 410 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.08634, allocations: 0 / 410 MB, free: 12.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.024e-05/0.08639, allocations: 102.5 kB / 410.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08641, allocations: 4 kB / 410.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.08667, allocations: 36.11 kB / 410.1 MB, free: 12.36 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.0006413/0.08731, allocations: 0.8208 MB / 410.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.08748, allocations: 67.91 kB / 411 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08749, allocations: 0 / 411 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.091e-05/0.08756, allocations: 27.98 kB / 411 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.0878, allocations: 8 kB / 411 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.08916, allocations: 1.551 MB / 412.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.08938, allocations: 0.6926 MB / 413.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.571e-05/0.08943, allocations: 16.34 kB / 413.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.764e-05/0.08948, allocations: 35.42 kB / 413.3 MB, free: 9 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08948, allocations: 0 / 413.3 MB, free: 9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3496/0.4391, allocations: 2.508 MB / 415.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/0.4394, allocations: 223.4 kB / 416.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.327, allocations: 0 / 416.1 MB, free: 6.316 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)