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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 107.5 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002449/0.002449, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02714/0.02714, allocations: 3.943 MB / 306.6 MB, free: 6.023 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 67.89 kB / 426.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1263, allocations: 52.92 MB / 479 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002332/0.1286, allocations: 0.7893 MB / 479.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000846/0.1294, allocations: 378.7 kB / 480.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.761e-05/0.1295, allocations: 11.88 kB / 480.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.1296, allocations: 3.938 kB / 480.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.81e-05/0.1297, allocations: 11.86 kB / 480.2 MB, free: 15.21 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.0004893/0.1302, allocations: 99.7 kB / 480.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.1303, allocations: 51.91 kB / 480.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.89e-05/0.1304, allocations: 12.17 kB / 480.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.213e-05/0.1304, allocations: 27.86 kB / 480.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.44e-05/0.1305, allocations: 19.92 kB / 480.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.1305, allocations: 4 kB / 480.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.1307, allocations: 103.8 kB / 480.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.485e-05/0.1307, allocations: 15.91 kB / 480.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.1308, allocations: 27.81 kB / 480.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.131, allocations: 123.9 kB / 480.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.131, allocations: 0 / 480.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.131, allocations: 4 kB / 480.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.131, allocations: 0 / 480.6 MB, free: 14.72 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.0005934/0.1316, allocations: 387 kB / 481 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1317, allocations: 8.031 kB / 481 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.664e-05/0.1317, allocations: 50.67 kB / 481.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.747e-05/0.1318, allocations: 4.938 kB / 481.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.132, allocations: 192.2 kB / 481.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1321, allocations: 8.375 kB / 481.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.1321, allocations: 4.375 kB / 481.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.1323, allocations: 77.97 kB / 481.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1323, allocations: 0 / 481.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.1323, allocations: 0 / 481.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1323, allocations: 7.938 kB / 481.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1324, allocations: 35.98 kB / 481.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.1331, allocations: 332.7 kB / 481.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.1333, allocations: 54.48 kB / 481.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.294e-05/0.1334, allocations: 16.86 kB / 481.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.1334, allocations: 0 / 481.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.1336, allocations: 75.38 kB / 481.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1336, allocations: 0 / 481.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000298/0.1338, allocations: 97.59 kB / 482 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.1339, allocations: 55.34 kB / 482 MB, free: 13.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.134, allocations: 144.4 kB / 482.2 MB, free: 13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.1341, allocations: 25.7 kB / 482.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.1341, allocations: 99.98 kB / 482.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.1342, allocations: 15.91 kB / 482.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.1342, allocations: 45.64 kB / 482.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1344, allocations: 318.8 kB / 482.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.686e-05/0.1344, allocations: 19.98 kB / 482.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1345, allocations: 70 kB / 482.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.1349, allocations: 125.8 kB / 482.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1349, allocations: 0 / 482.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002442/0.1351, allocations: 125.9 kB / 483 MB, free: 12.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1352, allocations: 8 kB / 483 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1352, allocations: 0 / 483 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.1352, allocations: 4 kB / 483 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.1353, allocations: 23.92 kB / 483 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1353, allocations: 8.016 kB / 483 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.168e-05/0.1353, allocations: 7.938 kB / 483 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.1353, allocations: 11.98 kB / 483 MB, free: 12.04 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.0001692/0.1355, allocations: 134.3 kB / 483.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.1355, allocations: 7.938 kB / 483.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.1356, allocations: 12.38 kB / 483.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1356, allocations: 0 / 483.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.1356, allocations: 3.938 kB / 483.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1356, allocations: 4 kB / 483.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/0.1361, allocations: 350.5 kB / 483.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1361, allocations: 0 / 483.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.029e-05/0.1361, allocations: 8 kB / 483.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1361, allocations: 0 / 483.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1361, allocations: 7.922 kB / 483.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1361, allocations: 4 kB / 483.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1361, allocations: 0 / 483.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.1364, allocations: 195.4 kB / 483.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.306e-05/0.1365, allocations: 85.09 kB / 483.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.1365, allocations: 3.938 kB / 483.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.043e-05/0.1366, allocations: 8.062 kB / 483.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.1366, allocations: 11.86 kB / 483.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.1367, allocations: 4 kB / 483.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.1367, allocations: 103.2 kB / 484 MB, free: 11.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1367, allocations: 0 / 484 MB, free: 11.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1371, allocations: 39.92 kB / 484 MB, free: 10.98 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.001006/0.1381, allocations: 0.8144 MB / 484.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.1383, allocations: 64.22 kB / 484.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1383, allocations: 0 / 484.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.25e-05/0.1384, allocations: 27.92 kB / 484.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.1386, allocations: 18.64 kB / 484.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.1405, allocations: 1.544 MB / 486.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1408, allocations: 0.7039 MB / 487.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.137e-05/0.1409, allocations: 8.422 kB / 487.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.1409, allocations: 23.44 kB / 487.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1409, allocations: 0 / 487.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02925/0.1702, allocations: 2.726 MB / 489.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.876/9.046, allocations: 7.5 kB / 489.9 MB, free: 4.992 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.762796910014004] Failed to read output from testmodel.py, exit status != 0: 9.118408671114594 9.140017644 9.004932373 Calling exit ...