Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.0106/0.0106, allocations: 100.8 kB / 15.87 MB, free: 6.309 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.002471/0.002471, allocations: 195.8 kB / 16.79 MB, free: 6.238 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.727/1.727, allocations: 205.1 MB / 222.6 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4309/0.4309, allocations: 43.5 MB / 313.5 MB, free: 8.277 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: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 67.91 kB / 382 MB, free: 8.496 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1624, allocations: 57.78 MB / 439.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001945/0.1644, allocations: 0.5659 MB / 440.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003637/0.1681, allocations: 2.133 MB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.502e-05/0.1681, allocations: 0 / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.1682, allocations: 0 / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.408e-06/0.1682, allocations: 0 / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.17, allocations: 431 kB / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.041e-05/0.1701, allocations: 0 / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.445e-05/0.1702, allocations: 0 / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.453e-05/0.1702, allocations: 3.984 kB / 442.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.506e-05/0.1702, allocations: 7.984 kB / 443 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-06/0.1703, allocations: 0 / 443 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.1714, allocations: 0.6317 MB / 443.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.198e-06/0.1714, allocations: 0 / 443.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/0.1715, allocations: 7.984 kB / 443.6 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005783/0.172, allocations: 391.2 kB / 444 MB, free: 10.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1721, allocations: 7.922 kB / 444 MB, free: 10.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1721, allocations: 4 kB / 444 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1721, allocations: 0 / 444 MB, free: 10.41 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.0004874/0.1726, allocations: 409.5 kB / 444.4 MB, free: 9.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.1726, allocations: 8.031 kB / 444.4 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.1727, allocations: 0.9375 kB / 444.4 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.1728, allocations: 164.3 kB / 444.6 MB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.1728, allocations: 8.375 kB / 444.6 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.1728, allocations: 384 / 444.6 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.1729, allocations: 30.02 kB / 444.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1729, allocations: 0 / 444.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.173, allocations: 8 kB / 444.6 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.173, allocations: 0 / 444.6 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.173, allocations: 7.922 kB / 444.6 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.1732, allocations: 145.7 kB / 444.7 MB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.1732, allocations: 22.61 kB / 444.8 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.1732, allocations: 4.859 kB / 444.8 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.693e-06/0.1733, allocations: 0 / 444.8 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.1733, allocations: 64.27 kB / 444.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1733, allocations: 0 / 444.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001982/0.1735, allocations: 79.22 kB / 444.9 MB, free: 9.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.1736, allocations: 77.11 kB / 445 MB, free: 9.203 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.09e-05/0.1736, allocations: 89.98 kB / 445.1 MB, free: 9.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.1736, allocations: 29.7 kB / 445.1 MB, free: 9.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.1737, allocations: 80.14 kB / 445.2 MB, free: 8.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/0.1737, allocations: 0 / 445.2 MB, free: 8.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.1737, allocations: 13.72 kB / 445.2 MB, free: 8.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1739, allocations: 318.8 kB / 445.5 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-06/0.1739, allocations: 0 / 445.5 MB, free: 8.648 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.1739, allocations: 0 / 445.5 MB, free: 8.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.794e-05/0.174, allocations: 64.33 kB / 445.6 MB, free: 8.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.174, allocations: 3.938 kB / 445.6 MB, free: 8.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.445e-05/0.174, allocations: 59.41 kB / 445.6 MB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.1741, allocations: 37.62 kB / 445.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1741, allocations: 4 kB / 445.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.1741, allocations: 0 / 445.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.834e-06/0.1741, allocations: 0 / 445.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1741, allocations: 0 / 445.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.716e-05/0.1741, allocations: 4 kB / 445.7 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.1742, allocations: 0 / 445.7 MB, free: 8.445 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.0001046/0.1743, allocations: 139.6 kB / 445.8 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.1743, allocations: 7.922 kB / 445.8 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.111e-05/0.1743, allocations: 11 kB / 445.8 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1743, allocations: 3.984 kB / 445.8 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1743, allocations: 0 / 445.8 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1743, allocations: 0 / 445.8 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.671e-05/0.1744, allocations: 145.7 kB / 446 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1744, allocations: 0 / 446 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1744, allocations: 0 / 446 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1744, allocations: 7.938 kB / 446 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.1745, allocations: 0 / 446 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1745, allocations: 0 / 446 MB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1745, allocations: 11.92 kB / 446 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.719e-05/0.1746, allocations: 82.84 kB / 446.1 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.1746, allocations: 77.11 kB / 446.2 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.1746, allocations: 11.92 kB / 446.2 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.1746, allocations: 4 kB / 446.2 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.1747, allocations: 4.031 kB / 446.2 MB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.1747, allocations: 4 kB / 446.2 MB, free: 7.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.902e-05/0.1747, allocations: 75.28 kB / 446.3 MB, free: 7.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1747, allocations: 0 / 446.3 MB, free: 7.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.1751, allocations: 124 kB / 446.4 MB, free: 7.641 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.0007221/0.1758, allocations: 314.1 kB / 446.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.554e-05/0.1759, allocations: 67.34 kB / 446.7 MB, free: 7.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1759, allocations: 0 / 446.7 MB, free: 7.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.176, allocations: 55.41 kB / 446.8 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.1761, allocations: 7.578 kB / 446.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001931/0.1763, allocations: 74.77 kB / 446.9 MB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.1765, allocations: 0.6692 MB / 447.6 MB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.684e-06/0.1765, allocations: 4.125 kB / 447.6 MB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.032e-05/0.1766, allocations: 11.44 kB / 447.6 MB, free: 6.375 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1766, allocations: 0 / 447.6 MB, free: 6.375 MB / 382.1 MB Notification: Performance of Templates: time 0.006973/0.1835, allocations: 3.414 MB / 451 MB, free: 2.957 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches