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) 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: translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") translateModel(AdvancedNoise.Examples.VaryingDistribution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 106.3 kB / 16.41 MB, free: 6.41 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.001799/0.001799, allocations: 189.7 kB / 17.34 MB, free: 5.699 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02483/0.02483, allocations: 3.903 MB / 295.1 MB, free: 11.01 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 65.42 kB / 407.6 MB, free: 28.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1242, allocations: 50.19 MB / 457.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.004226/0.1285, allocations: 1.505 MB / 459.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.1318, allocations: 1.114 MB / 460.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1319, allocations: 3.938 kB / 460.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1321, allocations: 15.86 kB / 460.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.1323, allocations: 15.86 kB / 460.4 MB, free: 7.207 MB / 334.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.001313/0.1336, allocations: 247.2 kB / 460.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.1339, allocations: 159.7 kB / 460.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.1341, allocations: 17.38 kB / 460.8 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1343, allocations: 59.77 kB / 460.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.1344, allocations: 59.75 kB / 461 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.1345, allocations: 12 kB / 461 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006065/0.1351, allocations: 243.6 kB / 461.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.353e-05/0.1352, allocations: 15.92 kB / 461.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.1353, allocations: 59.66 kB / 461.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.1359, allocations: 279.3 kB / 461.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1359, allocations: 0 / 461.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1359, allocations: 4 kB / 461.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.136, allocations: 0 / 461.6 MB, free: 6.07 MB / 334.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.002419/0.1384, allocations: 1.321 MB / 462.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1385, allocations: 8.031 kB / 462.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006051/0.1391, allocations: 52.69 kB / 462.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.1394, allocations: 216 kB / 463.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.1395, allocations: 8.375 kB / 463.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1396, allocations: 20.28 kB / 463.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.1402, allocations: 157.9 kB / 463.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1402, allocations: 0 / 463.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.1402, allocations: 4 kB / 463.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.1402, allocations: 0 / 463.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006072/0.1409, allocations: 139.9 kB / 463.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.1418, allocations: 368.6 kB / 463.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000706/0.1425, allocations: 210.4 kB / 464 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.143, allocations: 176.8 kB / 464.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.1431, allocations: 11.98 kB / 464.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007041/0.1438, allocations: 292.4 kB / 464.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.715e-06/0.1438, allocations: 0 / 464.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00176/0.1456, allocations: 474.9 kB / 465 MB, free: 2.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/0.1457, allocations: 97.09 kB / 465.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.146, allocations: 158.2 kB / 465.2 MB, free: 2.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.146, allocations: 29.64 kB / 465.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.52e-05/0.1461, allocations: 100.5 kB / 465.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.984e-05/0.1462, allocations: 35.55 kB / 465.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.1463, allocations: 41.69 kB / 465.4 MB, free: 1.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1465, allocations: 330.8 kB / 465.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.1469, allocations: 95.89 kB / 465.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.1473, allocations: 92.98 kB / 465.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008212/0.1481, allocations: 274.3 kB / 466.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1482, allocations: 0 / 466.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00104/0.1492, allocations: 295.1 kB / 466.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.5e-05/0.1493, allocations: 49.69 kB / 466.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1494, allocations: 0 / 466.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1494, allocations: 0 / 466.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.1496, allocations: 28.08 kB / 466.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1497, allocations: 3.938 kB / 466.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.1498, allocations: 15.91 kB / 466.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.918e-05/0.1499, allocations: 19.97 kB / 466.6 MB, free: 0.7305 MB / 334.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.00027/0.1502, allocations: 199.8 kB / 466.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1503, allocations: 11.91 kB / 466.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.1504, allocations: 16.83 kB / 466.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1504, allocations: 0 / 466.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1505, allocations: 0 / 466.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1505, allocations: 0 / 466.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.1508, allocations: 229.3 kB / 467 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1508, allocations: 0 / 467 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.151, allocations: 19.98 kB / 467.1 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.151, allocations: 0 / 467.1 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.1511, allocations: 8 kB / 467.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.1511, allocations: 4.062 kB / 467.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1511, allocations: 0 / 467.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.153, allocations: 0.591 MB / 467.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.1531, allocations: 88.95 kB / 467.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/0.1532, allocations: 11.98 kB / 467.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.1534, allocations: 15.98 kB / 467.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/0.1535, allocations: 11.98 kB / 467.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.412e-05/0.1536, allocations: 23.97 kB / 467.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.1538, allocations: 108.1 kB / 467.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1538, allocations: 0 / 467.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006012/0.1544, allocations: 96.05 kB / 468 MB, free: 15.2 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.000855/0.1553, allocations: 262.4 kB / 468.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.1566, allocations: 431.2 kB / 468.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1566, allocations: 0 / 468.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.1573, allocations: 363.3 kB / 469 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.1577, allocations: 27.94 kB / 469.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.1589, allocations: 381.6 kB / 469.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1592, allocations: 0.7078 MB / 470.2 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.883e-05/0.1593, allocations: 15.42 kB / 470.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1593, allocations: 0 / 470.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of Templates: time 0.00935/0.1687, allocations: 3.134 MB / 473.3 MB, free: 9.875 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.makefile (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)