Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001669/0.001669, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001997/0.001997, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.551/1.551, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2155/0.2155, allocations: 44.91 MB / 359.6 MB, free: 6.262 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 67.89 kB / 0.4943 GB, free: 10.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3269, allocations: 65.47 MB / 0.5582 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002424/0.3293, allocations: 0.4986 MB / 0.5587 GB, free: 7.227 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004818/0.3341, allocations: 2.143 MB / 0.5608 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.998e-05/0.3342, allocations: 0 / 0.5608 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.3342, allocations: 0 / 0.5608 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.3342, allocations: 4 kB / 0.5608 GB, free: 5.062 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.002242/0.3364, allocations: 0.5141 MB / 0.5613 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.29e-05/0.3365, allocations: 0 / 0.5613 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.063e-05/0.3365, allocations: 11.92 kB / 0.5613 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.147e-05/0.3366, allocations: 3.984 kB / 0.5613 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.103e-05/0.3366, allocations: 4 kB / 0.5613 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.3366, allocations: 4 kB / 0.5614 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.3384, allocations: 0.7564 MB / 0.5621 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.3384, allocations: 4 kB / 0.5621 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.3385, allocations: 3.984 kB / 0.5621 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.3395, allocations: 401.4 kB / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3395, allocations: 0 / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3395, allocations: 0 / 0.5625 GB, free: 3.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.3395, allocations: 4 kB / 0.5625 GB, free: 3.371 MB / 398.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.0006417/0.3402, allocations: 343.3 kB / 0.5628 GB, free: 3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3402, allocations: 12.02 kB / 0.5628 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.3403, allocations: 4.938 kB / 0.5628 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.3404, allocations: 102.5 kB / 0.5629 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3404, allocations: 4.375 kB / 0.5629 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.3404, allocations: 384 / 0.5629 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.3405, allocations: 34.02 kB / 0.563 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3405, allocations: 0 / 0.563 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.3406, allocations: 0 / 0.563 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3406, allocations: 0 / 0.563 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.833e-05/0.3406, allocations: 3.938 kB / 0.563 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002028/0.3408, allocations: 124.8 kB / 0.5631 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.465e-05/0.3408, allocations: 18.58 kB / 0.5631 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.796e-05/0.3409, allocations: 8.953 kB / 0.5631 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.919e-06/0.3409, allocations: 0 / 0.5631 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.384e-05/0.341, allocations: 60.2 kB / 0.5632 GB, free: 2.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.393e-06/0.341, allocations: 0 / 0.5632 GB, free: 2.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002504/0.3412, allocations: 75.28 kB / 0.5632 GB, free: 2.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.3413, allocations: 77.11 kB / 0.5633 GB, free: 2.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.905e-05/0.3414, allocations: 97.92 kB / 0.5634 GB, free: 2.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.3414, allocations: 25.7 kB / 0.5634 GB, free: 2.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/0.3414, allocations: 80.14 kB / 0.5635 GB, free: 2.137 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.3415, allocations: 4 kB / 0.5635 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.3415, allocations: 9.719 kB / 0.5635 GB, free: 2.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3417, allocations: 314.8 kB / 0.5638 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.666e-05/0.3417, allocations: 4 kB / 0.5638 GB, free: 1.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.765e-06/0.3417, allocations: 0 / 0.5638 GB, free: 1.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.42e-05/0.3418, allocations: 68.31 kB / 0.5639 GB, free: 1.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3418, allocations: 0 / 0.5639 GB, free: 1.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.387e-05/0.3419, allocations: 59.34 kB / 0.5639 GB, free: 1.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.3419, allocations: 37.64 kB / 0.564 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.3419, allocations: 3.938 kB / 0.564 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.3419, allocations: 0 / 0.564 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.946e-06/0.3419, allocations: 3.984 kB / 0.564 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3419, allocations: 0 / 0.564 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.3419, allocations: 4 kB / 0.564 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.342, allocations: 4.031 kB / 0.564 GB, free: 1.586 MB / 398.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.0001162/0.3421, allocations: 135.5 kB / 0.5641 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.3421, allocations: 7.938 kB / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.111e-05/0.3421, allocations: 3 kB / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.3421, allocations: 0 / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3421, allocations: 0 / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3421, allocations: 0 / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.3422, allocations: 116.8 kB / 0.5642 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.3422, allocations: 4 kB / 0.5643 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.3422, allocations: 0 / 0.5643 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3422, allocations: 7.938 kB / 0.5643 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3422, allocations: 4 kB / 0.5643 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3422, allocations: 0 / 0.5643 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3422, allocations: 0 / 0.5643 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.3424, allocations: 98.75 kB / 0.5644 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-06/0.3424, allocations: 0 / 0.5644 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.3424, allocations: 3.938 kB / 0.5644 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.177e-06/0.3424, allocations: 8.031 kB / 0.5644 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.322e-05/0.3424, allocations: 4 kB / 0.5644 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.3424, allocations: 3.938 kB / 0.5644 GB, free: 1.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.621e-05/0.3425, allocations: 75.28 kB / 0.5645 GB, free: 1.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3425, allocations: 0 / 0.5645 GB, free: 1.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000591/0.343, allocations: 131.5 kB / 0.5646 GB, free: 0.9102 MB / 398.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.001168/0.3442, allocations: 321.6 kB / 0.5649 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.3444, allocations: 55.41 kB / 0.5649 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3444, allocations: 3.938 kB / 0.5649 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.955e-05/0.3444, allocations: 59.34 kB / 0.565 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.3445, allocations: 6.344 kB / 0.565 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.3448, allocations: 114.7 kB / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.3452, allocations: 0.6769 MB / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.519e-05/0.3452, allocations: 7.438 kB / 0.5658 GB, free: 15.59 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3452, allocations: 0 / 0.5658 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Templates: time 0.007062/0.3522, allocations: 3.315 MB / 0.569 GB, free: 12.27 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 9.108829030068591]