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.005148/0.005149, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001058/0.001058, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1354/0.1354, allocations: 3.888 MB / 294.4 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 406.4 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2574, allocations: 50.18 MB / 456.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001657/0.2591, allocations: 0.7847 MB / 457.4 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005799/0.2597, allocations: 362.7 kB / 457.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.112e-05/0.2598, allocations: 7.156 kB / 457.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.039e-05/0.2599, allocations: 7.875 kB / 457.7 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.891e-05/0.2599, allocations: 14.95 kB / 457.8 MB, free: 19.69 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.0003796/0.2603, allocations: 96.73 kB / 457.9 MB, free: 19.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.759e-05/0.2604, allocations: 54.8 kB / 457.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.721e-05/0.2605, allocations: 13.52 kB / 457.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.003e-05/0.2605, allocations: 24.42 kB / 457.9 MB, free: 19.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.771e-05/0.2606, allocations: 32.12 kB / 458 MB, free: 19.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.348e-05/0.2606, allocations: 6.062 kB / 458 MB, free: 19.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.2607, allocations: 88.95 kB / 458.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.2607, allocations: 14.91 kB / 458.1 MB, free: 19.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.2608, allocations: 29.42 kB / 458.1 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.261, allocations: 119.6 kB / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.261, allocations: 3.031 kB / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.261, allocations: 0 / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.261, allocations: 0 / 458.2 MB, free: 19.48 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.0004079/0.2614, allocations: 400 kB / 458.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2614, allocations: 9.406 kB / 458.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.925e-05/0.2615, allocations: 37.84 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.2615, allocations: 3.875 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001708/0.2617, allocations: 191.6 kB / 458.9 MB, free: 18.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.2617, allocations: 7.5 kB / 458.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.2618, allocations: 8.828 kB / 458.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.2619, allocations: 69.8 kB / 458.9 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2619, allocations: 0 / 458.9 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.2619, allocations: 7.062 kB / 459 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.262, allocations: 4 kB / 459 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.2621, allocations: 41.02 kB / 459 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005305/0.2626, allocations: 332 kB / 459.3 MB, free: 18.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.2628, allocations: 53.84 kB / 459.4 MB, free: 18.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.38e-05/0.2628, allocations: 17.59 kB / 459.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.2628, allocations: 4 kB / 459.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001246/0.263, allocations: 72.44 kB / 459.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.244e-06/0.263, allocations: 7.141 kB / 459.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002363/0.2632, allocations: 96.38 kB / 459.6 MB, free: 18.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.2633, allocations: 51.41 kB / 459.6 MB, free: 18.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.169e-05/0.2633, allocations: 133.7 kB / 459.7 MB, free: 18.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.2634, allocations: 32.7 kB / 459.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.2634, allocations: 103.8 kB / 459.9 MB, free: 17.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.2634, allocations: 18.75 kB / 459.9 MB, free: 17.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.2635, allocations: 37.19 kB / 459.9 MB, free: 17.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.2635, allocations: 321.8 kB / 460.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.898e-05/0.2636, allocations: 23.23 kB / 460.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.044e-05/0.2636, allocations: 71.81 kB / 460.3 MB, free: 17.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.2639, allocations: 126.8 kB / 460.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2639, allocations: 0 / 460.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002001/0.2641, allocations: 132.1 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2642, allocations: 6.094 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2642, allocations: 0 / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.2642, allocations: 2.969 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.976e-05/0.2643, allocations: 22.61 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2643, allocations: 10.78 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.733e-05/0.2644, allocations: 3.062 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.2644, allocations: 5.906 kB / 460.6 MB, free: 17.36 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.0001091/0.2645, allocations: 139.9 kB / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.2645, allocations: 3 kB / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.2645, allocations: 11.38 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2646, allocations: 0 / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2646, allocations: 10.88 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2646, allocations: 3.469 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003393/0.2649, allocations: 349.7 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2649, allocations: 0 / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.918e-05/0.265, allocations: 10.52 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.265, allocations: 3.219 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.265, allocations: 3.938 kB / 461.2 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.265, allocations: 0 / 461.2 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.265, allocations: 0 / 461.2 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.2652, allocations: 194.3 kB / 461.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.2653, allocations: 90.48 kB / 461.4 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.2653, allocations: 7.859 kB / 461.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.194e-05/0.2654, allocations: 0.6094 kB / 461.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.2654, allocations: 5.875 kB / 461.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.2654, allocations: 3.922 kB / 461.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.368e-05/0.2655, allocations: 107.2 kB / 461.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2655, allocations: 0 / 461.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.2658, allocations: 35.56 kB / 461.6 MB, free: 16.52 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.0005994/0.2664, allocations: 0.8184 MB / 462.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.2666, allocations: 70.77 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2666, allocations: 3.062 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.018e-05/0.2667, allocations: 23.95 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.2669, allocations: 10.09 kB / 462.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.2682, allocations: 1.552 MB / 464.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.2683, allocations: 0.6964 MB / 464.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.065e-05/0.2684, allocations: 17.02 kB / 464.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.877e-05/0.2684, allocations: 21.91 kB / 464.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of SimCode: time 2.004e-06/0.2684, allocations: 0 / 464.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2889, allocations: 2.71 MB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.019, allocations: 15.41 kB / 467.5 MB, free: 13.11 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)