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.0008353/0.0008354, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001129/0.001129, allocations: 172.7 kB / 15.95 MB, free: 208 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.366/1.366, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1409/0.1409, allocations: 3.881 MB / 295 MB, free: 3.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004604, allocations: 12 kB / 356.6 MB, free: 3.625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 51.18 MB / 407.8 MB, free: 416 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001577/0.1204, allocations: 1.227 MB / 409 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.1222, allocations: 1.037 MB / 410.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.263e-05/0.1223, allocations: 7.938 kB / 410.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.851e-05/0.1224, allocations: 15.92 kB / 410.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.52e-05/0.1225, allocations: 7.875 kB / 410.1 MB, free: 14.09 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.0005919/0.1231, allocations: 195.6 kB / 410.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.1232, allocations: 131.7 kB / 410.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.314e-05/0.1233, allocations: 9.406 kB / 410.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.594e-05/0.1234, allocations: 63.77 kB / 410.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.1236, allocations: 55.73 kB / 410.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.1236, allocations: 4 kB / 410.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.1239, allocations: 195.7 kB / 410.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.1239, allocations: 23.91 kB / 410.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.124, allocations: 41.64 kB / 410.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.1242, allocations: 203.5 kB / 411 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1242, allocations: 0 / 411 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1242, allocations: 0 / 411 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1243, allocations: 0 / 411 MB, free: 13.18 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.001404/0.1257, allocations: 1.313 MB / 412.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.1257, allocations: 8.031 kB / 412.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003488/0.1261, allocations: 47.84 kB / 412.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.1263, allocations: 210.8 kB / 412.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1263, allocations: 4 kB / 412.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.1263, allocations: 12 kB / 412.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.1267, allocations: 165.6 kB / 412.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.1267, allocations: 0 / 412.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.1267, allocations: 8 kB / 412.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.1267, allocations: 3.953 kB / 412.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.1271, allocations: 155.8 kB / 412.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.1276, allocations: 356.6 kB / 413.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.128, allocations: 218.5 kB / 413.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.1283, allocations: 184.9 kB / 413.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.1283, allocations: 4 kB / 413.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003687/0.1287, allocations: 304.3 kB / 414 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.1287, allocations: 0 / 414 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009136/0.1296, allocations: 479.1 kB / 414.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.1297, allocations: 93.09 kB / 414.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.1298, allocations: 162.2 kB / 414.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1298, allocations: 29.7 kB / 414.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.251e-05/0.1299, allocations: 100.5 kB / 414.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.13, allocations: 31.47 kB / 414.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.13, allocations: 4 kB / 414.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1301, allocations: 330.8 kB / 415.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.1303, allocations: 91.95 kB / 415.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.1306, allocations: 99.94 kB / 415.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.1308, allocations: 141.6 kB / 415.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1308, allocations: 3.938 kB / 415.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005184/0.1313, allocations: 309.5 kB / 415.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.1314, allocations: 53.62 kB / 415.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1314, allocations: 0 / 415.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1314, allocations: 3.953 kB / 415.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.1316, allocations: 27.98 kB / 415.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1316, allocations: 0 / 415.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.051e-05/0.1317, allocations: 19.89 kB / 415.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.1317, allocations: 19.97 kB / 415.9 MB, free: 7.98 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 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r,globalSeed.id_impure,discreteNoise.localSeed,discreteNoise.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001629/0.1319, allocations: 187.4 kB / 416.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.132, allocations: 27.75 kB / 416.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.567e-05/0.132, allocations: 12.83 kB / 416.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.132, allocations: 0 / 416.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.132, allocations: 7.953 kB / 416.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.132, allocations: 0 / 416.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.1322, allocations: 221.7 kB / 416.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1322, allocations: 4 kB / 416.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.783e-05/0.1323, allocations: 15.98 kB / 416.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1323, allocations: 0 / 416.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.1324, allocations: 19.98 kB / 416.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1324, allocations: 0 / 416.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1324, allocations: 0 / 416.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009851/0.1334, allocations: 0.5921 MB / 417 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.894e-05/0.1335, allocations: 89.03 kB / 417.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.1335, allocations: 12 kB / 417.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.486e-05/0.1336, allocations: 15.98 kB / 417.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.643e-05/0.1337, allocations: 16.05 kB / 417.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.1337, allocations: 19.97 kB / 417.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001737/0.1339, allocations: 120.1 kB / 417.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1339, allocations: 0 / 417.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1343, allocations: 87.98 kB / 417.4 MB, free: 6.438 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 (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.0004985/0.1348, allocations: 253 kB / 417.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000667/0.1355, allocations: 455.2 kB / 418 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1355, allocations: 0 / 418 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.1359, allocations: 363.3 kB / 418.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.1361, allocations: 23.94 kB / 418.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006539/0.1368, allocations: 387.9 kB / 418.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.137, allocations: 0.7043 MB / 419.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.351e-05/0.1371, allocations: 16.64 kB / 419.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.083e-05/0.1371, allocations: 15.42 kB / 419.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1372, allocations: 3.938 kB / 419.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of Templates: time 0.005785/0.143, allocations: 2.984 MB / 422.5 MB, free: 1.23 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: