Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009156/0.0009156, allocations: 95.41 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000995/0.000995, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2485/0.2485, allocations: 45.92 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 8 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1473, allocations: 63.47 MB / 481.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0008413/0.1482, allocations: 222.9 kB / 481.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.1515, allocations: 2.23 MB / 483.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.992e-05/0.1516, allocations: 4 kB / 483.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.486e-05/0.1516, allocations: 0 / 483.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.1516, allocations: 0 / 483.8 MB, free: 2.941 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194: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.001563/0.1532, allocations: 466.4 kB / 484.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.295e-05/0.1532, allocations: 7.938 kB / 484.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.723e-05/0.1533, allocations: 0 / 484.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.204e-05/0.1533, allocations: 3.984 kB / 484.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.251e-05/0.1533, allocations: 7.938 kB / 484.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-06/0.1533, allocations: 0 / 484.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.1545, allocations: 0.6903 MB / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.605e-06/0.1545, allocations: 4 kB / 485 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.1545, allocations: 25.7 kB / 485 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.155, allocations: 299.8 kB / 485.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.155, allocations: 0 / 485.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1551, allocations: 0 / 485.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1551, allocations: 0 / 485.3 MB, free: 1.449 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004266/0.1555, allocations: 437 kB / 485.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1555, allocations: 8.031 kB / 485.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.1556, allocations: 0 / 485.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.013e-05/0.1557, allocations: 167 kB / 485.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.1557, allocations: 4 kB / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.1557, allocations: 0 / 485.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.494e-05/0.1558, allocations: 29.69 kB / 486 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.1558, allocations: 4 kB / 486 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.1558, allocations: 0 / 486 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.1558, allocations: 4 kB / 486 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.064e-05/0.1559, allocations: 3.938 kB / 486 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.156, allocations: 145.6 kB / 486.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.994e-05/0.156, allocations: 18.61 kB / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-06/0.1561, allocations: 0 / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/0.1561, allocations: 64.25 kB / 486.2 MB, free: 420 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.1561, allocations: 0 / 486.2 MB, free: 420 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001726/0.1563, allocations: 67.41 kB / 486.3 MB, free: 340 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1564, allocations: 85.05 kB / 486.3 MB, free: 236 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.307e-05/0.1564, allocations: 89.86 kB / 486.4 MB, free: 136 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.1564, allocations: 25.7 kB / 486.5 MB, free: 104 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.1565, allocations: 80.14 kB / 486.5 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.1565, allocations: 3.984 kB / 486.5 MB, free: 16 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.1565, allocations: 4 kB / 486.5 MB, free: 12 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1566, allocations: 310.8 kB / 486.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.1567, allocations: 8.125 kB / 486.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.308e-06/0.1567, allocations: 0 / 486.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.712e-05/0.1567, allocations: 25.7 kB / 486.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1567, allocations: 0 / 486.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.385e-05/0.1568, allocations: 67.3 kB / 486.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.1568, allocations: 33.69 kB / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1568, allocations: 7.938 kB / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.1568, allocations: 0 / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1569, allocations: 0 / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.1569, allocations: 96 / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.1569, allocations: 4 kB / 487 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.1569, allocations: 0 / 487 MB, free: 15.53 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.157, allocations: 140.1 kB / 487.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.157, allocations: 7.953 kB / 487.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.033e-05/0.157, allocations: 3.125 kB / 487.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.157, allocations: 0 / 487.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1571, allocations: 3.984 kB / 487.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1571, allocations: 4 kB / 487.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.818e-05/0.1572, allocations: 153.6 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1572, allocations: 0 / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.1572, allocations: 0 / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1572, allocations: 3.953 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.1572, allocations: 0 / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1572, allocations: 4 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1572, allocations: 0 / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.923e-05/0.1573, allocations: 90.77 kB / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.1574, allocations: 85.14 kB / 487.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.1574, allocations: 3.953 kB / 487.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.1574, allocations: 3.984 kB / 487.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.813e-05/0.1574, allocations: 3.938 kB / 487.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1574, allocations: 0 / 487.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.259e-05/0.1575, allocations: 79.28 kB / 487.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1575, allocations: 0 / 487.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004716/0.158, allocations: 159.9 kB / 487.7 MB, free: 14.7 MB / 366.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 (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.000859/0.1588, allocations: 345 kB / 488.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1589, allocations: 59.41 kB / 488.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.159, allocations: 0 / 488.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.734e-05/0.159, allocations: 59.39 kB / 488.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.856e-05/0.1591, allocations: 0 / 488.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002018/0.1593, allocations: 86.77 kB / 488.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.1595, allocations: 0.677 MB / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.1596, allocations: 0 / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-06/0.1596, allocations: 7.438 kB / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1596, allocations: 0 / 488.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Templates: time 0.006797/0.1664, allocations: 3.675 MB / 492.6 MB, free: 9.711 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches