Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.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.001673/0.001673, allocations: 110 kB / 18.94 MB, free: 2.793 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.002259/0.002259, allocations: 190.6 kB / 22.23 MB, free: 5.234 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.585/1.585, allocations: 225.6 MB / 251 MB, free: 13 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.02849/0.02849, allocations: 3.948 MB / 310.2 MB, free: 4.855 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: translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 59.91 kB / 431.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1186, allocations: 52.97 MB / 484.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003127/0.1217, allocations: 1.531 MB / 486.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1241, allocations: 1.133 MB / 487.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.459e-05/0.1242, allocations: 4 kB / 487.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.1244, allocations: 19.8 kB / 487.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.645e-05/0.1245, allocations: 15.86 kB / 487.4 MB, free: 11.63 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.000974/0.1254, allocations: 259.2 kB / 487.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.1257, allocations: 183.6 kB / 487.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.712e-05/0.1258, allocations: 9.578 kB / 487.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.1259, allocations: 59.83 kB / 487.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.126, allocations: 67.67 kB / 488 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.1261, allocations: 8 kB / 488 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004784/0.1266, allocations: 291.5 kB / 488.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.289e-05/0.1266, allocations: 23.92 kB / 488.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.855e-05/0.1267, allocations: 47.73 kB / 488.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.1272, allocations: 299 kB / 488.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1272, allocations: 0 / 488.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1272, allocations: 0 / 488.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1272, allocations: 0 / 488.6 MB, free: 10.4 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.001774/0.1289, allocations: 1.27 MB / 489.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.129, allocations: 12.03 kB / 489.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000402/0.1294, allocations: 48.84 kB / 490 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.1297, allocations: 160.4 kB / 490.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1297, allocations: 8.312 kB / 490.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.1297, allocations: 12.38 kB / 490.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.1301, allocations: 165.2 kB / 490.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1301, allocations: 0 / 490.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.1302, allocations: 4 kB / 490.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1302, allocations: 3.984 kB / 490.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003429/0.1305, allocations: 139.9 kB / 490.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.1311, allocations: 335.7 kB / 490.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.1315, allocations: 142.4 kB / 490.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.1318, allocations: 120.8 kB / 491 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.1318, allocations: 0 / 491 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004577/0.1323, allocations: 296.4 kB / 491.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.1323, allocations: 0 / 491.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001077/0.1333, allocations: 487.1 kB / 491.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.1334, allocations: 89.09 kB / 491.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.1336, allocations: 162.2 kB / 492 MB, free: 6.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.1336, allocations: 25.7 kB / 492.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.502e-05/0.1337, allocations: 104.4 kB / 492.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.1337, allocations: 39.69 kB / 492.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.618e-05/0.1338, allocations: 45.81 kB / 492.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.134, allocations: 330.7 kB / 492.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.1342, allocations: 87.94 kB / 492.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1344, allocations: 94.19 kB / 492.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.1349, allocations: 276.1 kB / 493 MB, free: 5.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1349, allocations: 0 / 493 MB, free: 5.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005871/0.1355, allocations: 293 kB / 493.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.619e-05/0.1355, allocations: 53.62 kB / 493.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1355, allocations: 0 / 493.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1356, allocations: 0 / 493.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.1357, allocations: 27.97 kB / 493.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1357, allocations: 8 kB / 493.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.284e-05/0.1358, allocations: 11.95 kB / 493.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.1359, allocations: 19.97 kB / 493.4 MB, free: 5.359 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0002007/0.1361, allocations: 191.4 kB / 493.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.098e-05/0.1361, allocations: 19.84 kB / 493.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.888e-05/0.1362, allocations: 12.78 kB / 493.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1362, allocations: 0 / 493.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1362, allocations: 0 / 493.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1362, allocations: 4 kB / 493.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.1364, allocations: 200.5 kB / 493.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1364, allocations: 7.938 kB / 493.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.1365, allocations: 11.98 kB / 493.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1365, allocations: 4.047 kB / 493.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.1365, allocations: 8 kB / 493.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1365, allocations: 4 kB / 493.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1365, allocations: 0 / 493.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.1377, allocations: 0.5844 MB / 494.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.302e-05/0.1377, allocations: 11.94 kB / 494.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.1377, allocations: 15.98 kB / 494.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.81e-05/0.1378, allocations: 11.98 kB / 494.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.1379, allocations: 15.92 kB / 494.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.304e-05/0.138, allocations: 24.03 kB / 494.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.1381, allocations: 119.2 kB / 494.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1381, allocations: 0 / 494.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.1384, allocations: 87.8 kB / 494.7 MB, free: 3.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0006378/0.1391, allocations: 246.4 kB / 495 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.1398, allocations: 335.2 kB / 495.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1398, allocations: 4 kB / 495.3 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.1402, allocations: 227.2 kB / 495.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.1404, allocations: 24.05 kB / 495.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007966/0.1412, allocations: 359.5 kB / 495.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.1416, allocations: 0.7234 MB / 496.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.1416, allocations: 12.66 kB / 496.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.1416, allocations: 11.44 kB / 496.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1416, allocations: 0 / 496.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of Templates: time 0.007434/0.1491, allocations: 3.242 MB / 499.9 MB, free: 14.78 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.makefile [Timeout 660] (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & ./AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.907236963510513] Failed to read output from testmodel.py, exit status != 0: 0.15670636761933565 0.173066461 0.042752922000000006 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc1770697b0>