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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02838/0.02838, allocations: 3.904 MB / 18.88 MB, free: 3.516 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.0008222/0.0008223, allocations: 172 kB / 20.51 MB, free: 2.496 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.403/1.403, allocations: 223.3 MB / 245.3 MB, free: 11.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009785/0.0009786, allocations: 97.02 kB / 297.2 MB, free: 9.977 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.000309, allocations: 11.98 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2692, allocations: 51.17 MB / 410.1 MB, free: 31.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.0009023/0.2701, allocations: 0.4923 MB / 410.6 MB, free: 30.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005705/0.2707, allocations: 355.8 kB / 411 MB, free: 30.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.2708, allocations: 0 / 411 MB, free: 30.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.031e-05/0.2709, allocations: 10.02 kB / 411 MB, free: 30.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.051e-05/0.2709, allocations: 3.938 kB / 411 MB, free: 30.29 MB / 302.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.0003383/0.2713, allocations: 71.86 kB / 411.1 MB, free: 30.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.405e-05/0.2714, allocations: 55.83 kB / 411.1 MB, free: 30.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.497e-05/0.2715, allocations: 9.125 kB / 411.1 MB, free: 30.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.997e-05/0.2715, allocations: 23.86 kB / 411.2 MB, free: 30.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.512e-05/0.2715, allocations: 17.45 kB / 411.2 MB, free: 30.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.2715, allocations: 4 kB / 411.2 MB, free: 30.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.2717, allocations: 83.84 kB / 411.3 MB, free: 30.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.2717, allocations: 7.984 kB / 411.3 MB, free: 30.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.595e-05/0.2718, allocations: 38.77 kB / 411.3 MB, free: 29.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.2719, allocations: 83.8 kB / 411.4 MB, free: 29.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2719, allocations: 0 / 411.4 MB, free: 29.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2719, allocations: 3.438 kB / 411.4 MB, free: 29.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2719, allocations: 0 / 411.4 MB, free: 29.89 MB / 302.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.0003773/0.2723, allocations: 373.4 kB / 411.7 MB, free: 29.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2724, allocations: 12.03 kB / 411.8 MB, free: 29.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.2724, allocations: 34.56 kB / 411.8 MB, free: 29.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.2724, allocations: 7.906 kB / 411.8 MB, free: 29.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.2726, allocations: 190.9 kB / 412 MB, free: 29.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.2726, allocations: 7.406 kB / 412 MB, free: 29.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.2726, allocations: 8 kB / 412 MB, free: 29.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/0.2728, allocations: 69.66 kB / 412.1 MB, free: 29.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2728, allocations: 0 / 412.1 MB, free: 29.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.2728, allocations: 3.953 kB / 412.1 MB, free: 29.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.2728, allocations: 4 kB / 412.1 MB, free: 29.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.202e-05/0.2729, allocations: 31.92 kB / 412.1 MB, free: 29.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005245/0.2735, allocations: 343.5 kB / 412.4 MB, free: 28.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.2736, allocations: 50.61 kB / 412.5 MB, free: 28.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.2737, allocations: 24.84 kB / 412.5 MB, free: 28.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-06/0.2737, allocations: 0 / 412.5 MB, free: 28.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.2738, allocations: 75.3 kB / 412.6 MB, free: 28.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.2738, allocations: 0 / 412.6 MB, free: 28.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002684/0.2741, allocations: 97.58 kB / 412.7 MB, free: 28.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.2742, allocations: 55.39 kB / 412.7 MB, free: 28.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.407e-05/0.2742, allocations: 136 kB / 412.9 MB, free: 28.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.2743, allocations: 29.7 kB / 412.9 MB, free: 28.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.303e-05/0.2743, allocations: 92.05 kB / 413 MB, free: 28.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.2743, allocations: 31.64 kB / 413 MB, free: 28.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.2743, allocations: 0 / 413 MB, free: 28.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.528e-05/0.2744, allocations: 322.8 kB / 413.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.443e-05/0.2744, allocations: 23.98 kB / 413.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.408e-05/0.2745, allocations: 69.92 kB / 413.4 MB, free: 27.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.829e-05/0.2746, allocations: 28 kB / 413.5 MB, free: 27.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2746, allocations: 0 / 413.5 MB, free: 27.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001818/0.2748, allocations: 129.5 kB / 413.6 MB, free: 27.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.2748, allocations: 10.5 kB / 413.6 MB, free: 27.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2748, allocations: 3.984 kB / 413.6 MB, free: 27.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.2748, allocations: 8.156 kB / 413.6 MB, free: 27.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.453e-05/0.2749, allocations: 19.92 kB / 413.6 MB, free: 27.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2749, allocations: 4 kB / 413.6 MB, free: 27.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.769e-05/0.275, allocations: 11.94 kB / 413.6 MB, free: 27.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.275, allocations: 11.94 kB / 413.7 MB, free: 27.38 MB / 302.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 ($whenCondition1,$PRE.faultTrigger.y,$PRE.countFaults.y,countFaults.y,$whenCondition2,faultTrigger.y,faultTrigger.r,globalSeed.seed,globalSeed.id_impure,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.867e-05/0.2751, allocations: 121.7 kB / 413.8 MB, free: 27.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.2751, allocations: 11.89 kB / 413.8 MB, free: 27.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.2752, allocations: 16.38 kB / 413.8 MB, free: 27.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2752, allocations: 0 / 413.8 MB, free: 27.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2752, allocations: 0 / 413.8 MB, free: 27.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2752, allocations: 3.938 kB / 413.8 MB, free: 27.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.2755, allocations: 354.5 kB / 414.2 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2755, allocations: 0 / 414.2 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/0.2756, allocations: 7.938 kB / 414.2 MB, free: 26.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2756, allocations: 0 / 414.2 MB, free: 26.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.2756, allocations: 4 kB / 414.2 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2756, allocations: 7.984 kB / 414.2 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2756, allocations: 0 / 414.2 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.2758, allocations: 191.4 kB / 414.4 MB, free: 26.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.195e-05/0.2758, allocations: 89.03 kB / 414.4 MB, free: 26.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2759, allocations: 0 / 414.4 MB, free: 26.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.911e-05/0.2759, allocations: 8 kB / 414.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.276, allocations: 3.984 kB / 414.5 MB, free: 26.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.276, allocations: 8.062 kB / 414.5 MB, free: 26.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.604e-05/0.276, allocations: 99.06 kB / 414.6 MB, free: 26.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2761, allocations: 0 / 414.6 MB, free: 26.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2763, allocations: 32 kB / 414.6 MB, free: 26.34 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005595/0.2769, allocations: 0.818 MB / 415.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.2771, allocations: 63.91 kB / 415.5 MB, free: 25.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2771, allocations: 0 / 415.5 MB, free: 25.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.402e-05/0.2771, allocations: 24.23 kB / 415.5 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.2774, allocations: 23.3 kB / 415.5 MB, free: 25.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008539/0.2783, allocations: 0.5992 MB / 416.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.2784, allocations: 0.6965 MB / 416.8 MB, free: 24.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.724e-05/0.2784, allocations: 12.42 kB / 416.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.2785, allocations: 23.44 kB / 416.9 MB, free: 24 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2785, allocations: 0 / 416.9 MB, free: 24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01151/0.29, allocations: 2.411 MB / 419.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/0.2902, allocations: 199.6 kB / 419.5 MB, free: 21.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/2.022, allocations: 0 / 419.5 MB, free: 21.46 MB / 302.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/linux/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)