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.01034/0.01034, allocations: 101.5 kB / 15.73 MB, free: 5.555 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.002297/0.002297, allocations: 191.4 kB / 16.67 MB, free: 5.484 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.483/1.483, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1404/0.1404, allocations: 3.885 MB / 294.4 MB, free: 3.25 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002686, allocations: 55.91 kB / 406.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2597, allocations: 50.18 MB / 456.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001686/0.2614, allocations: 0.7836 MB / 457.4 MB, free: 20 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000619/0.2621, allocations: 363.5 kB / 457.7 MB, free: 19.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.35e-05/0.2621, allocations: 0 / 457.7 MB, free: 19.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.2623, allocations: 15.23 kB / 457.7 MB, free: 19.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.634e-05/0.2623, allocations: 11.09 kB / 457.8 MB, free: 19.74 MB / 350.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.0004607/0.2628, allocations: 99.08 kB / 457.9 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.2629, allocations: 52.92 kB / 457.9 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.46e-05/0.263, allocations: 21.12 kB / 457.9 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.391e-05/0.263, allocations: 27.92 kB / 458 MB, free: 19.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.804e-05/0.2631, allocations: 17.55 kB / 458 MB, free: 19.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.2631, allocations: 10.12 kB / 458 MB, free: 19.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2633, allocations: 93.28 kB / 458.1 MB, free: 19.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.051e-05/0.2633, allocations: 14.48 kB / 458.1 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.717e-05/0.2634, allocations: 32.91 kB / 458.1 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.2636, allocations: 122 kB / 458.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2636, allocations: 0 / 458.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2636, allocations: 0 / 458.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2636, allocations: 6.906 kB / 458.2 MB, free: 19.52 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.000427/0.264, allocations: 393.6 kB / 458.6 MB, free: 19.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2641, allocations: 10 kB / 458.6 MB, free: 19.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.2641, allocations: 30.75 kB / 458.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.2642, allocations: 10.72 kB / 458.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.2643, allocations: 185 kB / 458.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.2644, allocations: 7.406 kB / 458.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.2644, allocations: 6.625 kB / 458.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.2645, allocations: 78.22 kB / 459 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.2646, allocations: 0 / 459 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.2646, allocations: 3.125 kB / 459 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2646, allocations: 0 / 459 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.563e-05/0.2647, allocations: 38.14 kB / 459 MB, free: 18.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2653, allocations: 338 kB / 459.3 MB, free: 18.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.2654, allocations: 52.33 kB / 459.4 MB, free: 18.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.378e-05/0.2655, allocations: 22.02 kB / 459.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.2655, allocations: 0 / 459.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.2656, allocations: 77.7 kB / 459.5 MB, free: 18.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2656, allocations: 0 / 459.5 MB, free: 18.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002403/0.2659, allocations: 94.75 kB / 459.6 MB, free: 18.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.2659, allocations: 54.73 kB / 459.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.266, allocations: 139.8 kB / 459.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.266, allocations: 25.7 kB / 459.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.305e-05/0.2661, allocations: 103.5 kB / 459.9 MB, free: 18.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.2661, allocations: 22.7 kB / 459.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.2661, allocations: 37.98 kB / 459.9 MB, free: 17.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.187e-05/0.2662, allocations: 322.2 kB / 460.3 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.942e-05/0.2662, allocations: 21.98 kB / 460.3 MB, free: 17.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.772e-05/0.2663, allocations: 74.88 kB / 460.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.2666, allocations: 121.3 kB / 460.5 MB, free: 17.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2666, allocations: 0 / 460.5 MB, free: 17.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001933/0.2668, allocations: 128.1 kB / 460.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2668, allocations: 6.375 kB / 460.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2668, allocations: 4 kB / 460.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.2668, allocations: 3.062 kB / 460.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.322e-05/0.2669, allocations: 22 kB / 460.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2669, allocations: 11.16 kB / 460.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.541e-05/0.267, allocations: 10.34 kB / 460.6 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.267, allocations: 10.12 kB / 460.7 MB, free: 17.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 9.514e-05/0.2671, allocations: 132.4 kB / 460.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.2671, allocations: 6.406 kB / 460.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.2672, allocations: 11.56 kB / 460.8 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2672, allocations: 0 / 460.8 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2672, allocations: 3.938 kB / 460.8 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2672, allocations: 7.031 kB / 460.8 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.2675, allocations: 350.8 kB / 461.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2675, allocations: 0 / 461.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/0.2676, allocations: 6.125 kB / 461.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2676, allocations: 3.156 kB / 461.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.2676, allocations: 3.938 kB / 461.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2676, allocations: 0 / 461.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2676, allocations: 0 / 461.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002136/0.2678, allocations: 208 kB / 461.4 MB, free: 16.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.2679, allocations: 84.28 kB / 461.5 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.2679, allocations: 3.938 kB / 461.5 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-05/0.268, allocations: 6.578 kB / 461.5 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.972e-05/0.268, allocations: 4 kB / 461.5 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.268, allocations: 6.844 kB / 461.5 MB, free: 16.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.731e-05/0.2681, allocations: 101.2 kB / 461.6 MB, free: 16.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2681, allocations: 0 / 461.6 MB, free: 16.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.2684, allocations: 39.91 kB / 461.6 MB, free: 16.56 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.0006765/0.269, allocations: 0.8168 MB / 462.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.2692, allocations: 62.33 kB / 462.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2693, allocations: 0 / 462.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.035e-05/0.2693, allocations: 26.53 kB / 462.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.2696, allocations: 19.47 kB / 462.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2708, allocations: 1.554 MB / 464.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.271, allocations: 0.6905 MB / 464.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.29e-05/0.271, allocations: 10.89 kB / 464.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.2711, allocations: 27.84 kB / 464.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2711, allocations: 4 kB / 464.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.2968, allocations: 2.708 MB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.36/8.656, allocations: 6.312 kB / 467.5 MB, free: 13.15 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)