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.001823/0.001823, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002404/0.002404, allocations: 211.2 kB / 23.73 MB, free: 4.387 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.583/1.583, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2714/0.2714, allocations: 44.94 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 179] 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.002167/0.002167, allocations: 67.91 kB / 0.4935 GB, free: 10.03 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.353, allocations: 65.46 MB / 0.5574 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001676/0.3547, allocations: 0.5165 MB / 0.5579 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003431/0.3581, allocations: 2.004 MB / 0.5599 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.927e-05/0.3581, allocations: 0 / 0.5599 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.284e-05/0.3581, allocations: 0 / 0.5599 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.3581, allocations: 0 / 0.5599 GB, free: 4.816 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.001588/0.3597, allocations: 0.5101 MB / 0.5604 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.138e-05/0.3598, allocations: 4 kB / 0.5604 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.3598, allocations: 0 / 0.5604 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.398e-05/0.3598, allocations: 4 kB / 0.5604 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.854e-05/0.3599, allocations: 7.875 kB / 0.5604 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.862e-06/0.3599, allocations: 0 / 0.5604 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.361, allocations: 0.6394 MB / 0.561 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.361, allocations: 3.984 kB / 0.561 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.905e-05/0.361, allocations: 0 / 0.561 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000601/0.3616, allocations: 389.5 kB / 0.5614 GB, free: 3.273 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3616, allocations: 0 / 0.5614 GB, free: 3.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3616, allocations: 3.938 kB / 0.5614 GB, free: 3.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.3617, allocations: 0 / 0.5614 GB, free: 3.27 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.0005404/0.3622, allocations: 343.3 kB / 0.5617 GB, free: 2.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3622, allocations: 8.031 kB / 0.5617 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.3623, allocations: 0.9375 kB / 0.5617 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.019e-05/0.3623, allocations: 110.5 kB / 0.5619 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.3623, allocations: 4.375 kB / 0.5619 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.3624, allocations: 384 / 0.5619 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.3625, allocations: 59.72 kB / 0.5619 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3625, allocations: 0 / 0.5619 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3625, allocations: 3.984 kB / 0.5619 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.3625, allocations: 0 / 0.5619 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.245e-05/0.3625, allocations: 25.7 kB / 0.5619 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.3627, allocations: 109.2 kB / 0.562 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.3628, allocations: 44.31 kB / 0.5621 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.804e-05/0.3628, allocations: 34.5 kB / 0.5621 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.086e-06/0.3628, allocations: 4 kB / 0.5621 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.3629, allocations: 60.2 kB / 0.5622 GB, free: 2.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3629, allocations: 4.062 kB / 0.5622 GB, free: 2.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002671/0.3631, allocations: 134.6 kB / 0.5623 GB, free: 2.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.3632, allocations: 77.11 kB / 0.5624 GB, free: 2.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.165e-05/0.3633, allocations: 89.86 kB / 0.5625 GB, free: 1.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.3633, allocations: 25.7 kB / 0.5625 GB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.3633, allocations: 80.14 kB / 0.5626 GB, free: 1.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.3633, allocations: 0 / 0.5626 GB, free: 1.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.3633, allocations: 13.72 kB / 0.5626 GB, free: 1.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3635, allocations: 319 kB / 0.5629 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.864e-05/0.3635, allocations: 33.69 kB / 0.5629 GB, free: 1.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.802e-05/0.3635, allocations: 25.7 kB / 0.5629 GB, free: 1.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.344e-05/0.3636, allocations: 60.27 kB / 0.563 GB, free: 1.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3636, allocations: 0 / 0.563 GB, free: 1.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.939e-05/0.3637, allocations: 97.03 kB / 0.5631 GB, free: 1.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.3637, allocations: 32.67 kB / 0.5631 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.3637, allocations: 0 / 0.5631 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3637, allocations: 3.938 kB / 0.5631 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3637, allocations: 4.094 kB / 0.5631 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.3637, allocations: 4 kB / 0.5631 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.483e-05/0.3638, allocations: 0 / 0.5631 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.3638, allocations: 0 / 0.5631 GB, free: 1.223 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 9.614e-05/0.3639, allocations: 135.5 kB / 0.5633 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.682e-05/0.3639, allocations: 4 kB / 0.5633 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.377e-05/0.364, allocations: 10.92 kB / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.364, allocations: 0 / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.364, allocations: 0 / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.364, allocations: 0 / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.927e-05/0.364, allocations: 101.3 kB / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.364, allocations: 0 / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.364, allocations: 0 / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.364, allocations: 0 / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.3641, allocations: 4 kB / 0.5634 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.3641, allocations: 3.938 kB / 0.5634 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.3641, allocations: 0 / 0.5634 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.3642, allocations: 120.5 kB / 0.5635 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.466e-06/0.3642, allocations: 7.938 kB / 0.5635 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.3642, allocations: 0 / 0.5635 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.3642, allocations: 3.938 kB / 0.5635 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.3642, allocations: 8.016 kB / 0.5635 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.3642, allocations: 7.938 kB / 0.5635 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.3643, allocations: 75.31 kB / 0.5636 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3643, allocations: 0 / 0.5636 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.3647, allocations: 131.5 kB / 0.5637 GB, free: 0.543 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.0008861/0.3656, allocations: 315.6 kB / 0.564 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.3658, allocations: 114.8 kB / 0.5641 GB, free: 96 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3658, allocations: 0 / 0.5641 GB, free: 96 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.219e-05/0.3659, allocations: 85.05 kB / 0.5642 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.366, allocations: 4 kB / 0.5642 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003644/0.3664, allocations: 110.7 kB / 0.5643 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.344e-05/0.3664, allocations: 55.34 kB / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.784e-06/0.3664, allocations: 0 / 0.5644 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/0.3665, allocations: 11.44 kB / 0.5644 GB, free: 15.76 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3665, allocations: 8.062 kB / 0.5644 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Templates: time 0.00836/0.3748, allocations: 3.503 MB / 0.5678 GB, free: 12.26 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/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: 5.552679007872939]