Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002929/0.002929, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.625/1.625, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2482/0.2482, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 63.89 kB / 0.4914 GB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1631, allocations: 66.01 MB / 0.5559 GB, free: 5.348 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001753/0.1649, allocations: 0.4932 MB / 0.5563 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003402/0.1683, allocations: 2.125 MB / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.1683, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.1683, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.1683, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1013:5-1096: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.001597/0.1699, allocations: 0.4947 MB / 0.5589 GB, free: 2.215 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.016e-05/0.17, allocations: 7.938 kB / 0.5589 GB, free: 2.207 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.519e-05/0.17, allocations: 7.984 kB / 0.5589 GB, free: 2.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.401e-05/0.17, allocations: 0 / 0.5589 GB, free: 2.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.341e-05/0.17, allocations: 7.922 kB / 0.5589 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.1701, allocations: 4 kB / 0.5589 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.1713, allocations: 0.6668 MB / 0.5596 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.1713, allocations: 0 / 0.5596 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.903e-05/0.1714, allocations: 0 / 0.5596 GB, free: 1.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006216/0.172, allocations: 387.1 kB / 0.5599 GB, free: 1.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.172, allocations: 4 kB / 0.5599 GB, free: 1.137 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.172, allocations: 11.88 kB / 0.56 GB, free: 1.125 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.172, allocations: 0 / 0.56 GB, free: 1.125 MB / 414.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.0005635/0.1726, allocations: 416.5 kB / 0.5604 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1726, allocations: 8.031 kB / 0.5604 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/0.1726, allocations: 0.9375 kB / 0.5604 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.1728, allocations: 164.4 kB / 0.5605 GB, free: 468 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.1728, allocations: 384 / 0.5605 GB, free: 468 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.1728, allocations: 4.375 kB / 0.5605 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.1729, allocations: 38 kB / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1729, allocations: 0 / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.1729, allocations: 0 / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1729, allocations: 0 / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.784e-05/0.1729, allocations: 0 / 0.5606 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.1731, allocations: 145.7 kB / 0.5607 GB, free: 224 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.985e-05/0.1731, allocations: 22.52 kB / 0.5607 GB, free: 192 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.916e-05/0.1732, allocations: 16.83 kB / 0.5607 GB, free: 172 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.1732, allocations: 0 / 0.5607 GB, free: 172 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/0.1732, allocations: 68.2 kB / 0.5608 GB, free: 88 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1732, allocations: 0 / 0.5608 GB, free: 88 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000195/0.1734, allocations: 67.3 kB / 0.5609 GB, free: 8 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/0.1735, allocations: 81.09 kB / 0.5609 GB, free: 15.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.745e-05/0.1736, allocations: 93.86 kB / 0.561 GB, free: 15.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1736, allocations: 29.83 kB / 0.5611 GB, free: 15.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.831e-05/0.1736, allocations: 80.14 kB / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.1736, allocations: 0 / 0.5611 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.849e-05/0.1737, allocations: 13.72 kB / 0.5611 GB, free: 15.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1738, allocations: 310.8 kB / 0.5614 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.1738, allocations: 0 / 0.5614 GB, free: 15.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.208e-05/0.1739, allocations: 8 kB / 0.5615 GB, free: 15.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.072e-05/0.1739, allocations: 64.33 kB / 0.5615 GB, free: 15.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1739, allocations: 0 / 0.5615 GB, free: 15.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.98e-05/0.174, allocations: 67.33 kB / 0.5616 GB, free: 15.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.1741, allocations: 41.58 kB / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1741, allocations: 0 / 0.5616 GB, free: 15.15 MB / 430.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.0001112/0.1742, allocations: 145.8 kB / 0.5618 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.1742, allocations: 3.938 kB / 0.5618 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.262e-05/0.1742, allocations: 7.125 kB / 0.5618 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1742, allocations: 0 / 0.5618 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1742, allocations: 0 / 0.5618 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1742, allocations: 4 kB / 0.5618 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.1744, allocations: 149.7 kB / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1744, allocations: 0 / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1744, allocations: 0 / 0.5619 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1744, allocations: 3.938 kB / 0.5619 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1744, allocations: 4 kB / 0.5619 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1744, allocations: 4 kB / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1744, allocations: 0 / 0.5619 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.1745, allocations: 90.77 kB / 0.562 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.1746, allocations: 85.05 kB / 0.5621 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1746, allocations: 3.938 kB / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.1746, allocations: 0 / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.1746, allocations: 4.031 kB / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1746, allocations: 0 / 0.5621 GB, free: 14.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.826e-05/0.1747, allocations: 79.28 kB / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1747, allocations: 0 / 0.5622 GB, free: 14.47 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.1751, allocations: 135.5 kB / 0.5623 GB, free: 14.34 MB / 430.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.0008364/0.1759, allocations: 310 kB / 0.5626 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.1761, allocations: 63.39 kB / 0.5627 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1761, allocations: 3.938 kB / 0.5627 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.882e-05/0.1761, allocations: 55.41 kB / 0.5627 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1762, allocations: 3.938 kB / 0.5627 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.1765, allocations: 81.05 kB / 0.5628 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1768, allocations: 0.6729 MB / 0.5635 GB, free: 13.08 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.1768, allocations: 4.125 kB / 0.5635 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.279e-05/0.1768, allocations: 7.438 kB / 0.5635 GB, free: 13.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1768, allocations: 3.938 kB / 0.5635 GB, free: 13.06 MB / 430.1 MB Notification: Performance of Templates: time 0.008293/0.1851, allocations: 3.501 MB / 0.5669 GB, free: 9.562 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.647992495447397]