Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001329/0.001329, allocations: 191.2 kB / 16.25 MB, free: 6.629 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.594/1.594, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.3553/0.3553, allocations: 39.93 MB / 309.4 MB, free: 9.367 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.001364/0.001364, allocations: 59.91 kB / 377.1 MB, free: 13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1378, allocations: 56.89 MB / 434 MB, free: 4.012 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001837/0.1397, allocations: 0.5558 MB / 434.6 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004359/0.1441, allocations: 2.33 MB / 436.9 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.1441, allocations: 0 / 436.9 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.1442, allocations: 0 / 436.9 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.1443, allocations: 4 kB / 436.9 MB, free: 1.094 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:1078:5-1175:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001953/0.1462, allocations: 0.5145 MB / 437.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.7e-05/0.1463, allocations: 4 kB / 437.4 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.232e-05/0.1464, allocations: 0 / 437.4 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.921e-05/0.1464, allocations: 3.984 kB / 437.4 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.99e-05/0.1464, allocations: 3.938 kB / 437.4 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.1464, allocations: 3.938 kB / 437.4 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.1475, allocations: 0.7175 MB / 438.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.129e-05/0.1475, allocations: 4 kB / 438.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.716e-05/0.1475, allocations: 3.984 kB / 438.1 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006077/0.1482, allocations: 463.2 kB / 438.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1482, allocations: 0 / 438.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1482, allocations: 4 kB / 438.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1482, allocations: 0 / 438.6 MB, free: 15.38 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.0005631/0.1488, allocations: 429.3 kB / 439 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.1488, allocations: 15.88 kB / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.771e-05/0.1489, allocations: 0.9375 kB / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.149, allocations: 164.4 kB / 439.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.1491, allocations: 4.375 kB / 439.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.1491, allocations: 8.312 kB / 439.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/0.1492, allocations: 37.95 kB / 439.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1492, allocations: 0 / 439.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1493, allocations: 0 / 439.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.1493, allocations: 4 kB / 439.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.475e-05/0.1493, allocations: 0 / 439.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001675/0.1495, allocations: 153.6 kB / 439.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.823e-05/0.1495, allocations: 18.61 kB / 439.4 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.295e-05/0.1496, allocations: 4.859 kB / 439.4 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-06/0.1496, allocations: 4 kB / 439.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/0.1496, allocations: 64.14 kB / 439.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1497, allocations: 4.062 kB / 439.5 MB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002411/0.1499, allocations: 63.39 kB / 439.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.15, allocations: 81.11 kB / 439.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.079e-05/0.15, allocations: 89.86 kB / 439.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.1501, allocations: 25.7 kB / 439.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.1501, allocations: 80.27 kB / 439.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.1501, allocations: 8 kB / 439.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.1502, allocations: 13.72 kB / 439.8 MB, free: 13.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1503, allocations: 310.8 kB / 440.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.38e-05/0.1504, allocations: 3.984 kB / 440.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.981e-06/0.1504, allocations: 0 / 440.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.27e-05/0.1504, allocations: 68.2 kB / 440.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1504, allocations: 0 / 440.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.936e-05/0.1505, allocations: 67.41 kB / 440.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.1506, allocations: 41.62 kB / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1506, allocations: 0 / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1506, allocations: 0 / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.974e-06/0.1506, allocations: 0 / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1506, allocations: 0 / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/0.1507, allocations: 0 / 440.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.1507, allocations: 0 / 440.3 MB, free: 13.38 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 0.0001049/0.1508, allocations: 139.5 kB / 440.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-06/0.1508, allocations: 7.969 kB / 440.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.421e-05/0.1508, allocations: 3.125 kB / 440.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.1508, allocations: 0 / 440.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1508, allocations: 3.938 kB / 440.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1508, allocations: 4 kB / 440.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.389e-05/0.1509, allocations: 149.6 kB / 440.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.151, allocations: 0 / 440.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.151, allocations: 3.938 kB / 440.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.151, allocations: 3.938 kB / 440.6 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.151, allocations: 0 / 440.6 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.151, allocations: 4 kB / 440.6 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.151, allocations: 4 kB / 440.6 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.063e-05/0.1511, allocations: 86.83 kB / 440.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.1511, allocations: 81.11 kB / 440.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1511, allocations: 7.938 kB / 440.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-06/0.1512, allocations: 0 / 440.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.1512, allocations: 3.984 kB / 440.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.1512, allocations: 4 kB / 440.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.021e-05/0.1512, allocations: 79.31 kB / 440.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1512, allocations: 0 / 440.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004554/0.1517, allocations: 152 kB / 441 MB, free: 12.55 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.0007737/0.1525, allocations: 345 kB / 441.4 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.492e-05/0.1526, allocations: 63.34 kB / 441.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1526, allocations: 3.938 kB / 441.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.834e-05/0.1526, allocations: 55.41 kB / 441.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1527, allocations: 4 kB / 441.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001858/0.1529, allocations: 88.92 kB / 441.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1532, allocations: 0.6729 MB / 442.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.061e-06/0.1532, allocations: 0 / 442.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-06/0.1532, allocations: 7.438 kB / 442.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1532, allocations: 4.125 kB / 442.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of Templates: time 0.006269/0.1595, allocations: 3.507 MB / 445.8 MB, free: 7.727 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1)