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.001575/0.001575, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00204/0.00204, allocations: 195 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1585/0.1585, allocations: 3.885 MB / 294.3 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 55.91 kB / 355.6 MB, free: 3.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08788, allocations: 50.19 MB / 405.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002029/0.08995, allocations: 0.7747 MB / 406.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006651/0.09063, allocations: 374.7 kB / 406.9 MB, free: 136 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.089e-05/0.0907, allocations: 3.938 kB / 406.9 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.837e-05/0.0908, allocations: 7.875 kB / 406.9 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.444e-05/0.09086, allocations: 11.94 kB / 406.9 MB, free: 112 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.0004123/0.09128, allocations: 103.7 kB / 407 MB, free: 8 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.0914, allocations: 43.92 kB / 407.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.514e-05/0.09149, allocations: 16.17 kB / 407.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.761e-05/0.09153, allocations: 23.86 kB / 407.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.453e-05/0.09158, allocations: 27.91 kB / 407.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.0916, allocations: 4 kB / 407.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.09178, allocations: 91.84 kB / 407.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.265e-05/0.09181, allocations: 19.92 kB / 407.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.81e-05/0.09186, allocations: 27.81 kB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.09206, allocations: 119.7 kB / 407.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09207, allocations: 0 / 407.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09208, allocations: 0 / 407.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.09209, allocations: 0 / 407.4 MB, free: 15.64 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.0005145/0.09261, allocations: 385.3 kB / 407.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.09265, allocations: 8.031 kB / 407.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.423e-05/0.09272, allocations: 42.69 kB / 407.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.09276, allocations: 12.83 kB / 407.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.09293, allocations: 184.3 kB / 408 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.09296, allocations: 12.31 kB / 408 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.09299, allocations: 8.281 kB / 408 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.09316, allocations: 73.97 kB / 408.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.09317, allocations: 0 / 408.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.0932, allocations: 11.98 kB / 408.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.0932, allocations: 0 / 408.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.09331, allocations: 39.84 kB / 408.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006106/0.09393, allocations: 332.7 kB / 408.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.09411, allocations: 54.62 kB / 408.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.461e-05/0.09418, allocations: 24.78 kB / 408.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.09419, allocations: 0 / 408.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.09436, allocations: 71.39 kB / 408.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.09437, allocations: 0 / 408.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002588/0.09463, allocations: 97.55 kB / 408.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.09468, allocations: 51.41 kB / 408.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.09483, allocations: 147.8 kB / 408.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.09485, allocations: 29.7 kB / 408.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.734e-05/0.09491, allocations: 96.03 kB / 409 MB, free: 13.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.09494, allocations: 15.81 kB / 409.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.09499, allocations: 37.7 kB / 409.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.09511, allocations: 318.8 kB / 409.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.474e-05/0.09518, allocations: 20 kB / 409.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.329e-05/0.09528, allocations: 69.98 kB / 409.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.09558, allocations: 129.8 kB / 409.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.09559, allocations: 0 / 409.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002267/0.09582, allocations: 117.5 kB / 409.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.09584, allocations: 12.16 kB / 409.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.09585, allocations: 0 / 409.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.09587, allocations: 4 kB / 409.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.218e-05/0.09596, allocations: 23.92 kB / 409.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.09597, allocations: 11.88 kB / 409.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.98e-05/0.09604, allocations: 11.89 kB / 409.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.09605, allocations: 8 kB / 409.8 MB, free: 12.95 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.0001369/0.0962, allocations: 127.4 kB / 409.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.09622, allocations: 7.906 kB / 409.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.09625, allocations: 12.38 kB / 409.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.09626, allocations: 3.984 kB / 409.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.788e-06/0.09627, allocations: 7.875 kB / 410 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.09628, allocations: 0 / 410 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/0.0967, allocations: 346.5 kB / 410.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.09671, allocations: 3.984 kB / 410.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.97e-05/0.09677, allocations: 8 kB / 410.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.09678, allocations: 4 kB / 410.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.0968, allocations: 7.938 kB / 410.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.09681, allocations: 0 / 410.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09681, allocations: 0 / 410.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.09707, allocations: 191.4 kB / 410.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.09713, allocations: 89.08 kB / 410.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.09716, allocations: 15.88 kB / 410.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.4e-05/0.09723, allocations: 7.984 kB / 410.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-05/0.09727, allocations: 4.062 kB / 410.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.09729, allocations: 4 kB / 410.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.854e-05/0.09735, allocations: 105.9 kB / 410.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09736, allocations: 0 / 410.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000295/0.09766, allocations: 32 kB / 410.8 MB, free: 11.9 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.000741/0.09841, allocations: 0.8131 MB / 411.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001953/0.09862, allocations: 72.2 kB / 411.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.09863, allocations: 4.062 kB / 411.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.68e-05/0.0987, allocations: 27.92 kB / 411.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.09897, allocations: 8.094 kB / 411.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.1005, allocations: 1.552 MB / 413.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.1008, allocations: 0.6961 MB / 413.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.947e-05/0.1009, allocations: 12.42 kB / 413.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.1009, allocations: 23.42 kB / 414 MB, free: 8.555 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1009, allocations: 0 / 414 MB, free: 8.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.1218, allocations: 2.669 MB / 416.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.666, allocations: 7.812 kB / 416.6 MB, free: 5.938 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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.FaultTrigger_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)