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.02605/0.02605, allocations: 3.91 MB / 19.18 MB, free: 2.902 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.0007671/0.0007671, allocations: 184.4 kB / 20.83 MB, free: 1.871 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.27/1.27, allocations: 223.3 MB / 245.6 MB, free: 9.883 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.0007945/0.0007945, allocations: 88.33 kB / 297.5 MB, free: 10.36 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 11.98 kB / 359.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2259, allocations: 51.17 MB / 410.7 MB, free: 30.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.0008117/0.2267, allocations: 0.5189 MB / 411.3 MB, free: 30.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005935/0.2274, allocations: 363 kB / 411.6 MB, free: 30.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.1e-05/0.2274, allocations: 4 kB / 411.6 MB, free: 30.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.469e-05/0.2275, allocations: 9.859 kB / 411.6 MB, free: 30.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.933e-05/0.2275, allocations: 7.922 kB / 411.6 MB, free: 30.1 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.0003247/0.2279, allocations: 79.86 kB / 411.7 MB, free: 30.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.559e-05/0.228, allocations: 55.8 kB / 411.8 MB, free: 29.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.915e-05/0.228, allocations: 19.53 kB / 411.8 MB, free: 29.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.752e-05/0.2281, allocations: 19.92 kB / 411.8 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.469e-05/0.2281, allocations: 23.86 kB / 411.8 MB, free: 29.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.2281, allocations: 0 / 411.8 MB, free: 29.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.2283, allocations: 83.86 kB / 411.9 MB, free: 29.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.708e-05/0.2283, allocations: 19.91 kB / 411.9 MB, free: 29.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.341e-05/0.2283, allocations: 45.56 kB / 412 MB, free: 29.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.2285, allocations: 116.3 kB / 412.1 MB, free: 29.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2285, allocations: 3.219 kB / 412.1 MB, free: 29.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2285, allocations: 0 / 412.1 MB, free: 29.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.2285, allocations: 3.938 kB / 412.1 MB, free: 29.63 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.0003408/0.2289, allocations: 373.6 kB / 412.5 MB, free: 29.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.2289, allocations: 12.03 kB / 412.5 MB, free: 29.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.947e-05/0.2289, allocations: 34.73 kB / 412.5 MB, free: 29.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.229, allocations: 8.844 kB / 412.5 MB, free: 29.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.2291, allocations: 192.3 kB / 412.7 MB, free: 28.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2291, allocations: 4.375 kB / 412.7 MB, free: 28.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.2291, allocations: 8.375 kB / 412.7 MB, free: 28.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.2293, allocations: 69.98 kB / 412.8 MB, free: 28.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.2293, allocations: 0 / 412.8 MB, free: 28.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.2293, allocations: 7.969 kB / 412.8 MB, free: 28.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.2293, allocations: 0 / 412.8 MB, free: 28.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.31e-05/0.2294, allocations: 31.98 kB / 412.8 MB, free: 28.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004907/0.2299, allocations: 352.4 kB / 413.2 MB, free: 28.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.2301, allocations: 50.61 kB / 413.2 MB, free: 28.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.979e-05/0.2301, allocations: 16.86 kB / 413.2 MB, free: 28.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.2301, allocations: 0 / 413.2 MB, free: 28.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001432/0.2303, allocations: 71.38 kB / 413.3 MB, free: 28.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2303, allocations: 7.938 kB / 413.3 MB, free: 28.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002138/0.2305, allocations: 89.58 kB / 413.4 MB, free: 28.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.2306, allocations: 55.41 kB / 413.4 MB, free: 28.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.975e-05/0.2306, allocations: 136.6 kB / 413.6 MB, free: 27.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.2306, allocations: 29.69 kB / 413.6 MB, free: 27.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.273e-05/0.2307, allocations: 99.95 kB / 413.7 MB, free: 27.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.2307, allocations: 19.73 kB / 413.7 MB, free: 27.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.2307, allocations: 25.7 kB / 413.8 MB, free: 27.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.2308, allocations: 326.8 kB / 414.1 MB, free: 27.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.388e-05/0.2308, allocations: 19.98 kB / 414.1 MB, free: 27.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.772e-05/0.2309, allocations: 69.94 kB / 414.2 MB, free: 27.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.2312, allocations: 113.9 kB / 414.3 MB, free: 27.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2312, allocations: 0 / 414.3 MB, free: 27.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001825/0.2314, allocations: 129.4 kB / 414.4 MB, free: 27.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.2314, allocations: 7.984 kB / 414.4 MB, free: 27.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2314, allocations: 8.156 kB / 414.4 MB, free: 27.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.2314, allocations: 0 / 414.4 MB, free: 27.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.825e-05/0.2315, allocations: 20 kB / 414.4 MB, free: 27.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2315, allocations: 7.922 kB / 414.4 MB, free: 27.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.2316, allocations: 15.84 kB / 414.5 MB, free: 27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.2316, allocations: 11.94 kB / 414.5 MB, free: 26.98 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 ($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.306e-05/0.2317, allocations: 125.7 kB / 414.6 MB, free: 26.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.2317, allocations: 11.91 kB / 414.6 MB, free: 26.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.344e-05/0.2317, allocations: 16.3 kB / 414.6 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2317, allocations: 0 / 414.6 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2317, allocations: 3.938 kB / 414.6 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2317, allocations: 4 kB / 414.6 MB, free: 26.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/0.2321, allocations: 350.5 kB / 415 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2321, allocations: 0 / 415 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.365e-05/0.2321, allocations: 4 kB / 415 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2321, allocations: 0 / 415 MB, free: 26.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.2321, allocations: 7.938 kB / 415 MB, free: 26.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2321, allocations: 0 / 415 MB, free: 26.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2322, allocations: 480 / 415 MB, free: 26.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.2324, allocations: 203.4 kB / 415.2 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.805e-05/0.2324, allocations: 81.06 kB / 415.3 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.2324, allocations: 15.94 kB / 415.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.598e-05/0.2325, allocations: 3.938 kB / 415.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.2325, allocations: 8.062 kB / 415.3 MB, free: 26.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.2325, allocations: 11.98 kB / 415.3 MB, free: 26.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.325e-05/0.2326, allocations: 98.36 kB / 415.4 MB, free: 25.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2326, allocations: 0 / 415.4 MB, free: 25.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00026/0.2328, allocations: 32.12 kB / 415.4 MB, free: 25.93 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 (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.0005161/0.2334, allocations: 0.8142 MB / 416.2 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.2335, allocations: 67.84 kB / 416.3 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2335, allocations: 320 / 416.3 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.142e-05/0.2336, allocations: 27.97 kB / 416.3 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.2338, allocations: 16.03 kB / 416.3 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.2349, allocations: 1.571 MB / 417.9 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.02e-05/0.235, allocations: 0.6926 MB / 418.6 MB, free: 22.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.351e-05/0.2351, allocations: 12.42 kB / 418.6 MB, free: 22.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.117e-05/0.2351, allocations: 23.42 kB / 418.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2351, allocations: 3.938 kB / 418.6 MB, free: 22.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01001/0.2451, allocations: 2.408 MB / 421.1 MB, free: 20.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/0.2453, allocations: 223.1 kB / 421.3 MB, free: 20 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.898, allocations: 0 / 421.3 MB, free: 20 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)