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.005626/0.005626, allocations: 97.14 kB / 15.73 MB, free: 5.988 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.00131/0.00131, allocations: 187 kB / 16.67 MB, free: 5.918 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1327/0.1327, allocations: 3.886 MB / 294.4 MB, free: 3.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002523/0.002523, allocations: 63.89 kB / 406.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2798, allocations: 50.17 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001655/0.2815, allocations: 0.7899 MB / 457.4 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005882/0.282, allocations: 368.8 kB / 457.7 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.404e-05/0.2821, allocations: 0 / 457.7 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.118e-05/0.2822, allocations: 7.875 kB / 457.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.773e-05/0.2822, allocations: 10.94 kB / 457.8 MB, free: 19.7 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.0003777/0.2826, allocations: 97.62 kB / 457.9 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.307e-05/0.2827, allocations: 61.14 kB / 457.9 MB, free: 19.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.189e-05/0.2828, allocations: 7.406 kB / 457.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.879e-05/0.2828, allocations: 24.62 kB / 457.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.967e-05/0.2828, allocations: 32.41 kB / 458 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.2828, allocations: 10.16 kB / 458 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.283, allocations: 84.34 kB / 458.1 MB, free: 19.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.283, allocations: 13.47 kB / 458.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.283, allocations: 33.28 kB / 458.1 MB, free: 19.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.2832, allocations: 128.5 kB / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2832, allocations: 0 / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2832, allocations: 0 / 458.2 MB, free: 19.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.2832, allocations: 4 kB / 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.0004203/0.2837, allocations: 392.8 kB / 458.6 MB, free: 19.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.2837, allocations: 8.906 kB / 458.6 MB, free: 19.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.54e-05/0.2837, allocations: 37.52 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.2837, allocations: 7.25 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.2839, allocations: 188 kB / 458.9 MB, free: 18.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.2839, allocations: 3.469 kB / 458.9 MB, free: 18.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.284, allocations: 10.56 kB / 458.9 MB, free: 18.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.2841, allocations: 77.77 kB / 459 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2841, allocations: 0 / 459 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2841, allocations: 0.6562 kB / 459 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2841, allocations: 3.375 kB / 459 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.2842, allocations: 36.62 kB / 459 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.2848, allocations: 340.6 kB / 459.3 MB, free: 18.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.2849, allocations: 57.36 kB / 459.4 MB, free: 18.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.28e-05/0.285, allocations: 18.11 kB / 459.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.146e-06/0.285, allocations: 0 / 459.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.2851, allocations: 69.48 kB / 459.5 MB, free: 18.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2851, allocations: 0 / 459.5 MB, free: 18.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002418/0.2853, allocations: 102.1 kB / 459.6 MB, free: 18.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.2854, allocations: 51.41 kB / 459.6 MB, free: 18.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.451e-05/0.2854, allocations: 143 kB / 459.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.2854, allocations: 25.7 kB / 459.8 MB, free: 18.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.2855, allocations: 100.5 kB / 459.9 MB, free: 17.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.2855, allocations: 22.31 kB / 459.9 MB, free: 17.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.2855, allocations: 33.34 kB / 459.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.919e-05/0.2856, allocations: 321.4 kB / 460.2 MB, free: 17.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.975e-05/0.2856, allocations: 25.09 kB / 460.3 MB, free: 17.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.839e-05/0.2857, allocations: 71.17 kB / 460.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.286, allocations: 122.6 kB / 460.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.286, allocations: 2.75 kB / 460.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001961/0.2862, allocations: 133.8 kB / 460.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.2862, allocations: 3.156 kB / 460.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2862, allocations: 3.062 kB / 460.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2862, allocations: 3 kB / 460.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.694e-05/0.2863, allocations: 23.75 kB / 460.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.2863, allocations: 11.25 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.911e-05/0.2863, allocations: 14.31 kB / 460.7 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.2863, allocations: 3.156 kB / 460.7 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 9.968e-05/0.2864, allocations: 138.4 kB / 460.8 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.2865, allocations: 2.938 kB / 460.8 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.495e-05/0.2865, allocations: 11.47 kB / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2865, allocations: 0 / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2865, allocations: 7.938 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2865, allocations: 3.422 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/0.2868, allocations: 350.7 kB / 461.2 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2868, allocations: 0 / 461.2 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.775e-05/0.2869, allocations: 3.094 kB / 461.2 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2869, allocations: 3.938 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.2869, allocations: 6.781 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2869, allocations: 3.094 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2869, allocations: 0 / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.2871, allocations: 195.6 kB / 461.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.2871, allocations: 84.31 kB / 461.4 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.2871, allocations: 3.938 kB / 461.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.252e-05/0.2872, allocations: 6.469 kB / 461.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.2872, allocations: 4 kB / 461.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.2872, allocations: 6.141 kB / 461.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.2873, allocations: 98.72 kB / 461.6 MB, free: 16.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2873, allocations: 2.938 kB / 461.6 MB, free: 16.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.2876, allocations: 39.95 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.0005874/0.2882, allocations: 0.8243 MB / 462.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.2883, allocations: 59.98 kB / 462.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2883, allocations: 0 / 462.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.635e-05/0.2884, allocations: 23.17 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.0002481/0.2887, allocations: 19.91 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.2898, 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 9.629e-05/0.2899, allocations: 0.694 MB / 464.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.437e-05/0.2899, allocations: 12.47 kB / 464.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.29, allocations: 21.42 kB / 464.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.29, allocations: 4 kB / 464.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.3153, allocations: 2.719 MB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.323, allocations: 9.359 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 & /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)