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.0009944/0.0009988, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001151/0.001151, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1803/0.1803, allocations: 3.88 MB / 294.9 MB, free: 4.047 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003501, allocations: 8 kB / 356.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 51.17 MB / 407.8 MB, free: 312 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001113/0.1215, allocations: 0.503 MB / 408.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007562/0.1222, allocations: 359 kB / 408.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.957e-05/0.1224, allocations: 0 / 408.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.1224, allocations: 11.92 kB / 408.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.367e-05/0.1225, allocations: 7.938 kB / 408.7 MB, free: 15.43 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.0004928/0.123, allocations: 75.78 kB / 408.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.1231, allocations: 35.95 kB / 408.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.1232, allocations: 12.17 kB / 408.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.058e-05/0.1233, allocations: 15.88 kB / 408.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.017e-05/0.1233, allocations: 23.91 kB / 408.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.1234, allocations: 4 kB / 408.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.1236, allocations: 67.81 kB / 408.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.749e-05/0.1236, allocations: 11.98 kB / 408.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.1236, allocations: 33.64 kB / 408.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.1238, allocations: 83.84 kB / 409 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1238, allocations: 0 / 409 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1238, allocations: 0 / 409 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1239, allocations: 0 / 409 MB, free: 15.06 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.0005268/0.1244, allocations: 375.3 kB / 409.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1244, allocations: 12.03 kB / 409.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.078e-05/0.1245, allocations: 42.55 kB / 409.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.1245, allocations: 7.906 kB / 409.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.1247, allocations: 179 kB / 409.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.1248, allocations: 8 kB / 409.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.1248, allocations: 4 kB / 409.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.125, allocations: 73.59 kB / 409.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.125, allocations: 0 / 409.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1251, allocations: 11.94 kB / 409.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1251, allocations: 0 / 409.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.1252, allocations: 31.97 kB / 409.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.1259, allocations: 336.7 kB / 410.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.1261, allocations: 54.56 kB / 410.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.1261, allocations: 0 / 410.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.1263, allocations: 83.34 kB / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.1263, allocations: 0 / 410.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002743/0.1266, allocations: 85.61 kB / 410.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.1266, allocations: 55.39 kB / 410.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1268, allocations: 137.7 kB / 410.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.1268, allocations: 33.7 kB / 410.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.1269, allocations: 95.97 kB / 410.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.1269, allocations: 23.7 kB / 410.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-06/0.1269, allocations: 0 / 410.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.127, allocations: 322.8 kB / 411 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.1271, allocations: 23.98 kB / 411 MB, free: 12.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.51e-05/0.1272, allocations: 68.8 kB / 411 MB, free: 12.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.1273, allocations: 39.89 kB / 411.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1273, allocations: 0 / 411.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002298/0.1276, allocations: 121.4 kB / 411.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1276, allocations: 8 kB / 411.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1276, allocations: 0 / 411.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1276, allocations: 4 kB / 411.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.202e-05/0.1277, allocations: 23.92 kB / 411.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1277, allocations: 4.156 kB / 411.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.1278, allocations: 15.94 kB / 411.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.1278, allocations: 4 kB / 411.3 MB, free: 12.58 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 ($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 0.0001545/0.128, allocations: 130.1 kB / 411.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.128, allocations: 11.89 kB / 411.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.05e-05/0.1281, allocations: 12.38 kB / 411.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1281, allocations: 0 / 411.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1281, allocations: 4 kB / 411.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1281, allocations: 0 / 411.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004447/0.1285, allocations: 350.5 kB / 411.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1285, allocations: 0 / 411.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.773e-05/0.1286, allocations: 4 kB / 411.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1286, allocations: 0 / 411.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1286, allocations: 8 kB / 411.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1286, allocations: 0 / 411.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1286, allocations: 3.984 kB / 411.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.1289, allocations: 199.3 kB / 412 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/0.129, allocations: 96.91 kB / 412.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.129, allocations: 4 kB / 412.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.599e-05/0.1291, allocations: 4 kB / 412.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.1291, allocations: 3.984 kB / 412.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.1291, allocations: 4 kB / 412.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.573e-05/0.1292, allocations: 99.27 kB / 412.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1292, allocations: 8 kB / 412.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.1296, allocations: 36.12 kB / 412.2 MB, free: 11.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 (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.0008877/0.1305, allocations: 0.8159 MB / 413 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000213/0.1307, allocations: 64.12 kB / 413.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1307, allocations: 4 kB / 413.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/0.1308, allocations: 31.91 kB / 413.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.131, allocations: 8.25 kB / 413.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1323, allocations: 1.344 MB / 414.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1326, allocations: 0.6965 MB / 415.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.807e-05/0.1327, allocations: 12.36 kB / 415.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.787e-05/0.1327, allocations: 27.42 kB / 415.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1327, allocations: 4 kB / 415.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01401/0.1467, allocations: 2.354 MB / 417.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.147, allocations: 202.5 kB / 417.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/1.743, allocations: 0 / 417.8 MB, free: 5.934 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/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) Environment - environmentSimulation: