Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.00192, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.665/1.665, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3789/0.3789, allocations: 39.94 MB / 309.7 MB, free: 9.238 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.91 kB / 377.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.149, allocations: 56.88 MB / 434.5 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001958/0.151, allocations: 0.4949 MB / 435 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.1543, allocations: 2.076 MB / 437.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.1e-05/0.1543, allocations: 0 / 437.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.397e-05/0.1544, allocations: 0 / 437.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.1544, allocations: 3.938 kB / 437.1 MB, free: 1.082 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:994:5-1076:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.1559, allocations: 490.6 kB / 437.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.929e-05/0.156, allocations: 4 kB / 437.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.869e-05/0.1561, allocations: 0 / 437.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.015e-05/0.1561, allocations: 0 / 437.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.34e-05/0.1561, allocations: 3.938 kB / 437.6 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.405e-06/0.1561, allocations: 0 / 437.6 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1572, allocations: 0.5889 MB / 438.1 MB, free: 4 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.627e-06/0.1572, allocations: 0 / 438.1 MB, free: 4 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.1572, allocations: 0 / 438.1 MB, free: 4 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005978/0.1578, allocations: 383.3 kB / 438.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1578, allocations: 0 / 438.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1578, allocations: 0 / 438.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.1578, allocations: 0 / 438.5 MB, free: 15.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004289/0.1583, allocations: 413.4 kB / 438.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1583, allocations: 19.88 kB / 438.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.1584, allocations: 0.9375 kB / 438.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/0.1585, allocations: 164.4 kB / 439.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1585, allocations: 384 / 439.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.1585, allocations: 384 / 439.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.845e-05/0.1586, allocations: 38.02 kB / 439.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.1586, allocations: 0 / 439.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.1586, allocations: 0 / 439.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1586, allocations: 3.984 kB / 439.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.848e-05/0.1587, allocations: 4 kB / 439.1 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001305/0.1588, allocations: 153.6 kB / 439.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.07e-05/0.1589, allocations: 14.58 kB / 439.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.936e-05/0.1589, allocations: 12.95 kB / 439.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.1589, allocations: 0 / 439.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.1589, allocations: 60.2 kB / 439.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1589, allocations: 0 / 439.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.1591, allocations: 75.23 kB / 439.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.1592, allocations: 77.11 kB / 439.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.961e-05/0.1592, allocations: 93.8 kB / 439.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.1593, allocations: 25.7 kB / 439.6 MB, free: 14.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.82e-05/0.1593, allocations: 88.27 kB / 439.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1593, allocations: 0 / 439.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.1594, allocations: 13.72 kB / 439.7 MB, free: 14.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1595, allocations: 314.8 kB / 440.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.1595, allocations: 3.984 kB / 440.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.491e-06/0.1595, allocations: 3.938 kB / 440.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.155e-05/0.1596, allocations: 60.27 kB / 440.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1596, allocations: 4.062 kB / 440.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.422e-05/0.1597, allocations: 63.34 kB / 440.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.1597, allocations: 41.62 kB / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1597, allocations: 0 / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.1597, allocations: 0 / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1597, allocations: 0 / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1598, allocations: 4 kB / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.1598, allocations: 0 / 440.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.1598, allocations: 0 / 440.2 MB, free: 13.64 MB / 382.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 7.793e-05/0.1599, allocations: 135.6 kB / 440.4 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.1599, allocations: 7.938 kB / 440.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.408e-06/0.1599, allocations: 3.125 kB / 440.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1599, allocations: 0 / 440.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.16, allocations: 0 / 440.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.16, allocations: 0 / 440.4 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.129e-05/0.1601, allocations: 149.7 kB / 440.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1601, allocations: 0 / 440.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.944e-06/0.1601, allocations: 4 kB / 440.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1601, allocations: 3.938 kB / 440.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1601, allocations: 0 / 440.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1601, allocations: 7.984 kB / 440.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.1601, allocations: 0 / 440.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000101/0.1602, allocations: 94.77 kB / 440.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.1602, allocations: 77.11 kB / 440.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.1603, allocations: 7.938 kB / 440.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.246e-05/0.1603, allocations: 4 kB / 440.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/0.1603, allocations: 3.984 kB / 440.7 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1603, allocations: 7.969 kB / 440.7 MB, free: 13.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.566e-05/0.1604, allocations: 79.28 kB / 440.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1604, allocations: 0 / 440.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004007/0.1608, allocations: 124 kB / 440.9 MB, free: 12.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0008196/0.1616, allocations: 302.1 kB / 441.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.1617, allocations: 59.41 kB / 441.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1617, allocations: 0 / 441.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.546e-05/0.1618, allocations: 59.34 kB / 441.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1619, allocations: 0 / 441.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002072/0.1621, allocations: 92.91 kB / 441.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.1624, allocations: 0.6729 MB / 442.1 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.1624, allocations: 0 / 442.1 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.047e-05/0.1624, allocations: 7.562 kB / 442.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1624, allocations: 4 kB / 442.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of Templates: time 0.007135/0.1696, allocations: 3.366 MB / 445.5 MB, free: 8.199 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1)