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.004628/0.004628, allocations: 104.5 kB / 15.74 MB, free: 6.039 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.001221/0.001221, allocations: 196.2 kB / 16.68 MB, free: 5.957 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02432/0.02432, allocations: 3.909 MB / 294.4 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.94 kB / 406.4 MB, free: 28.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08023/0.08146, allocations: 50.19 MB / 456.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002104/0.08361, allocations: 0.7712 MB / 457.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008024/0.08444, allocations: 370.8 kB / 457.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.047e-05/0.08454, allocations: 4 kB / 457.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.08468, allocations: 11.86 kB / 457.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.395e-05/0.08475, allocations: 15.81 kB / 457.8 MB, free: 9.355 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.0005429/0.0853, allocations: 87.78 kB / 457.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.08544, allocations: 63.77 kB / 457.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.08555, allocations: 20.16 kB / 457.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.561e-05/0.0856, allocations: 23.92 kB / 458 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.905e-05/0.08566, allocations: 19.86 kB / 458 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.08568, allocations: 11.98 kB / 458 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.08589, allocations: 91.86 kB / 458.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.08593, allocations: 19.91 kB / 458.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.146e-05/0.08597, allocations: 19.88 kB / 458.1 MB, free: 9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.08623, allocations: 131.6 kB / 458.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.08624, allocations: 0 / 458.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.08625, allocations: 0 / 458.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.08626, allocations: 0 / 458.2 MB, free: 8.871 MB / 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.0005405/0.0868, allocations: 376.1 kB / 458.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.08685, allocations: 12.03 kB / 458.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.0869, allocations: 34.75 kB / 458.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.08695, allocations: 16.83 kB / 458.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.08721, allocations: 188.5 kB / 458.9 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.08724, allocations: 12.38 kB / 458.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.08727, allocations: 4.375 kB / 458.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.08747, allocations: 80.97 kB / 458.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.08748, allocations: 0 / 458.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.0875, allocations: 0 / 458.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.08751, allocations: 4 kB / 459 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.08762, allocations: 35.91 kB / 459 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006078/0.08824, allocations: 340.6 kB / 459.3 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.08842, allocations: 46.62 kB / 459.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.957e-05/0.08848, allocations: 20.84 kB / 459.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.08849, allocations: 0 / 459.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.08864, allocations: 79.31 kB / 459.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.08865, allocations: 0 / 459.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002614/0.08891, allocations: 93.55 kB / 459.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.08897, allocations: 59.41 kB / 459.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.08908, allocations: 137.7 kB / 459.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.0891, allocations: 29.64 kB / 459.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.08915, allocations: 99.94 kB / 459.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.08918, allocations: 15.81 kB / 459.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.08924, allocations: 41.7 kB / 459.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.625e-05/0.08933, allocations: 322.8 kB / 460.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.489e-05/0.0894, allocations: 19.98 kB / 460.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.998e-05/0.0895, allocations: 76.19 kB / 460.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.08981, allocations: 113.9 kB / 460.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.08983, allocations: 0 / 460.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002399/0.09007, allocations: 133.5 kB / 460.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.0901, allocations: 11.98 kB / 460.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.09011, allocations: 0 / 460.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.09014, allocations: 7.938 kB / 460.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.883e-05/0.09022, allocations: 12 kB / 460.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.09024, allocations: 15.86 kB / 460.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.202e-05/0.0903, allocations: 7.906 kB / 460.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.09032, allocations: 8 kB / 460.6 MB, free: 6.199 MB / 334.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.0001342/0.09046, allocations: 138.3 kB / 460.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.09049, allocations: 7.906 kB / 460.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.09053, allocations: 16.36 kB / 460.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.09053, allocations: 0 / 460.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.09055, allocations: 3.938 kB / 460.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.09055, allocations: 0 / 460.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004424/0.091, allocations: 350.5 kB / 461.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.09101, allocations: 0 / 461.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-05/0.09107, allocations: 4 kB / 461.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.09108, allocations: 4 kB / 461.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.0911, allocations: 3.938 kB / 461.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.09111, allocations: 4 kB / 461.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.09111, allocations: 0 / 461.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002655/0.09138, allocations: 199.9 kB / 461.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.09144, allocations: 85.05 kB / 461.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.09147, allocations: 7.922 kB / 461.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.047e-05/0.09154, allocations: 4.062 kB / 461.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.903e-05/0.09158, allocations: 4 kB / 461.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.0916, allocations: 11.98 kB / 461.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.908e-05/0.09167, allocations: 95.27 kB / 461.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.09167, allocations: 0 / 461.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.09197, allocations: 36.12 kB / 461.6 MB, free: 5.145 MB / 334.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.0007767/0.09275, allocations: 0.82 MB / 462.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.09296, allocations: 68.2 kB / 462.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.09297, allocations: 4.062 kB / 462.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.645e-05/0.09305, allocations: 27.92 kB / 462.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.09331, allocations: 8 kB / 462.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.09487, allocations: 1.555 MB / 464.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.09513, allocations: 0.6961 MB / 464.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.282e-05/0.09519, allocations: 12.42 kB / 464.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.09524, allocations: 23.42 kB / 464.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of SimCode: time 2.745e-06/0.09525, allocations: 0 / 464.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.115, allocations: 2.737 MB / 467.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.506/7.621, allocations: 11.22 kB / 467.6 MB, free: 15.12 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)