Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions") translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008976/0.008976, allocations: 102 kB / 15.73 MB, free: 6.477 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.001233/0.001233, allocations: 195.6 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.855/1.855, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 50.05 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1405, allocations: 46.63 MB / 373.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.Distributions): time 0.003559/0.1441, allocations: 1.515 MB / 374.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.1474, allocations: 1.457 MB / 376.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.1475, allocations: 0 / 376.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.1477, allocations: 11.81 kB / 376.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1478, allocations: 23.8 kB / 376.2 MB, free: 14.41 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:994:5-1084:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:321:7-386:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift128plus.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.1492, allocations: 390.8 kB / 376.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000232/0.1495, allocations: 139.5 kB / 376.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1496, allocations: 13.48 kB / 376.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.845e-05/0.1497, allocations: 55.78 kB / 376.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1498, allocations: 71.61 kB / 376.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.1499, allocations: 12 kB / 376.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008666/0.1507, allocations: 423.3 kB / 377.3 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.173e-05/0.1508, allocations: 39.84 kB / 377.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1509, allocations: 63.58 kB / 377.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007107/0.1517, allocations: 411.1 kB / 377.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.1517, allocations: 0 / 377.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1517, allocations: 0 / 377.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.1517, allocations: 0 / 377.8 MB, free: 12.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001155/0.1529, allocations: 0.5065 MB / 378.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.459e-05/0.1529, allocations: 12.03 kB / 378.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002965/0.1533, allocations: 36.73 kB / 378.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.1535, allocations: 208.8 kB / 378.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.1536, allocations: 4.359 kB / 378.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.1536, allocations: 16.36 kB / 378.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.1539, allocations: 129.5 kB / 378.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.154, allocations: 0 / 378.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.154, allocations: 7.984 kB / 378.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.154, allocations: 4 kB / 378.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.1543, allocations: 59.95 kB / 378.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.1553, allocations: 0.5476 MB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.1557, allocations: 147.7 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.1559, allocations: 70.61 kB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.1559, allocations: 0 / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000433/0.1563, allocations: 153.8 kB / 379.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.234e-06/0.1564, allocations: 4 kB / 379.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006925/0.157, allocations: 253.5 kB / 379.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/0.1572, allocations: 118.8 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.1576, allocations: 203 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.417e-05/0.1577, allocations: 49.69 kB / 380.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1578, allocations: 112.7 kB / 380.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.1579, allocations: 39.47 kB / 380.4 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.158, allocations: 57.69 kB / 380.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.1582, allocations: 334.8 kB / 380.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.1584, allocations: 99.94 kB / 380.9 MB, free: 9.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.1587, allocations: 143.1 kB / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.1592, allocations: 231.7 kB / 381.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1592, allocations: 0 / 381.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000596/0.1598, allocations: 317.2 kB / 381.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.1598, allocations: 4 kB / 381.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1598, allocations: 0 / 381.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.1599, allocations: 4 kB / 381.6 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.1601, allocations: 31.91 kB / 381.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.1601, allocations: 4 kB / 381.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.1602, allocations: 27.73 kB / 381.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.1602, allocations: 4 kB / 381.6 MB, free: 8.629 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1],truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * 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.0002565/0.1605, allocations: 162 kB / 381.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.1606, allocations: 15.81 kB / 381.8 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.1606, allocations: 17.33 kB / 381.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.1606, allocations: 4 kB / 381.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.1606, allocations: 0 / 381.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1607, allocations: 0 / 381.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003579/0.161, allocations: 221.5 kB / 382.1 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.161, allocations: 0 / 382.1 MB, free: 8.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.858e-05/0.1611, allocations: 19.92 kB / 382.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1611, allocations: 0 / 382.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.1612, allocations: 8 kB / 382.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1612, allocations: 0 / 382.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1612, allocations: 0 / 382.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.1618, allocations: 242.4 kB / 382.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.342e-05/0.1619, allocations: 92.92 kB / 382.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.991e-05/0.162, allocations: 11.98 kB / 382.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.135e-05/0.162, allocations: 11.94 kB / 382.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/0.1622, allocations: 11.98 kB / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.1622, allocations: 11.92 kB / 382.5 MB, free: 7.711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.1623, allocations: 133.2 kB / 382.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1623, allocations: 0 / 382.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005771/0.1629, allocations: 128 kB / 382.7 MB, free: 7.457 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001195/0.1641, allocations: 358.6 kB / 383.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000596/0.1647, allocations: 203.8 kB / 383.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1648, allocations: 3.938 kB / 383.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.1649, allocations: 60.22 kB / 383.3 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.1652, allocations: 23.89 kB / 383.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/0.166, allocations: 273.2 kB / 383.6 MB, free: 6.516 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.1666, allocations: 0.7199 MB / 384.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.445e-05/0.1667, allocations: 25.59 kB / 384.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.07e-05/0.1667, allocations: 19.44 kB / 384.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1667, allocations: 0 / 384.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of Templates: time 0.01089/0.1776, allocations: 3.643 MB / 388 MB, free: 2.078 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.sim & ./Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe 2>&1)