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.0009772/0.0009772, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001338/0.002316, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009593/0.0009593, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001231/0.00219, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.009/1.009, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08625/1.096, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.2905/0.2905, allocations: 34.26 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04838/0.3389, allocations: 13.1 MB / 291.3 MB, free: 7.363 MB / 282.7 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 1.473e-06/1.473e-06, allocations: 0 / 292.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/2.07e-05, allocations: 3.078 kB / 292.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00105/0.001071, allocations: 0.5593 MB / 293.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.003101, allocations: 2.074 MB / 295.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.003116, allocations: 0 / 295.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.418e-06/0.00312, allocations: 3.938 kB / 295.3 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.002e-06/0.003121, allocations: 0 / 295.3 MB, free: 3.641 MB / 282.7 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.0009944/0.004116, allocations: 486.2 kB / 295.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.189e-05/0.004168, allocations: 0.5 kB / 295.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.386e-05/0.004202, allocations: 4 kB / 295.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.913e-05/0.004231, allocations: 0 / 295.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.004252, allocations: 0 / 295.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.00426, allocations: 0 / 295.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009282/0.005188, allocations: 0.6743 MB / 296.4 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.005198, allocations: 4 kB / 296.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.005217, allocations: 4 kB / 296.4 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.00568, allocations: 375 kB / 296.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.111e-05/0.005691, allocations: 0 / 296.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.005692, allocations: 0 / 296.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.005704, allocations: 0 / 296.8 MB, free: 2.109 MB / 282.7 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.0003875/0.006091, allocations: 369.6 kB / 297.1 MB, free: 1.719 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.006123, allocations: 8.031 kB / 297.2 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.006156, allocations: 0.9375 kB / 297.2 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.88e-05/0.006215, allocations: 109.7 kB / 297.3 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.006224, allocations: 384 / 297.3 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-06/0.00623, allocations: 384 / 297.3 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.019e-05/0.006301, allocations: 59.95 kB / 297.3 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-06/0.006306, allocations: 192 / 297.3 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.006312, allocations: 384 / 297.3 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.006317, allocations: 3.938 kB / 297.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.837e-05/0.006336, allocations: 33.7 kB / 297.4 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.928e-05/0.006395, allocations: 57.03 kB / 297.4 MB, free: 1.395 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.19e-05/0.006437, allocations: 48.25 kB / 297.5 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.006452, allocations: 38.53 kB / 297.5 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.006455, allocations: 0 / 297.5 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.006489, allocations: 64.33 kB / 297.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.006489, allocations: 0 / 297.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001149/0.006604, allocations: 114.8 kB / 297.7 MB, free: 1.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.006641, allocations: 77.11 kB / 297.7 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.917e-05/0.00667, allocations: 89.86 kB / 297.8 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.006678, allocations: 29.83 kB / 297.9 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.024e-05/0.006699, allocations: 80.14 kB / 297.9 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.006715, allocations: 4.625 kB / 297.9 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.067e-05/0.006736, allocations: 13.72 kB / 298 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.006812, allocations: 314.8 kB / 298.3 MB, free: 432 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.85e-05/0.00683, allocations: 29.7 kB / 298.3 MB, free: 396 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.197e-05/0.006842, allocations: 25.7 kB / 298.3 MB, free: 364 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.179e-05/0.006884, allocations: 64.25 kB / 298.4 MB, free: 284 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.006886, allocations: 0 / 298.4 MB, free: 284 kB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.657e-05/0.006943, allocations: 97.11 kB / 298.5 MB, free: 168 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.562e-05/0.006978, allocations: 33.69 kB / 298.5 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.006983, allocations: 0 / 298.5 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.824e-06/0.006991, allocations: 4 kB / 298.5 MB, free: 124 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.687e-06/0.006995, allocations: 0 / 298.5 MB, free: 124 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.006997, allocations: 7.938 kB / 298.5 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.007013, allocations: 0 / 298.5 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.007021, allocations: 3.938 kB / 298.5 MB, free: 112 kB / 282.7 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 7.464e-05/0.007096, allocations: 135.5 kB / 298.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-06/0.0071, allocations: 0 / 298.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.386e-06/0.007108, allocations: 3.031 kB / 298.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.007111, allocations: 7.984 kB / 298.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.007112, allocations: 0 / 298.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.007114, allocations: 0 / 298.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.728e-05/0.007162, allocations: 69.83 kB / 298.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.007163, allocations: 0 / 298.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.007163, allocations: 0 / 298.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.007167, allocations: 0 / 298.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.007168, allocations: 4 kB / 298.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-06/0.007172, allocations: 0 / 298.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.007172, allocations: 0 / 298.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.007173, allocations: 0 / 298.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.691e-05/0.00725, allocations: 124.4 kB / 298.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.007261, allocations: 4 kB / 298.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.602e-06/0.007268, allocations: 4 kB / 298.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-06/0.007276, allocations: 0 / 298.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.007279, allocations: 3.984 kB / 298.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.832e-06/0.007286, allocations: 4.859 kB / 298.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007286, allocations: 4 kB / 298.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003309/0.007617, allocations: 127.5 kB / 299 MB, free: 15.56 MB / 298.7 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.0005801/0.008197, allocations: 345.7 kB / 299.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.219e-05/0.008289, allocations: 111.7 kB / 299.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.008293, allocations: 0 / 299.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.772e-05/0.00832, allocations: 89.95 kB / 299.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.081e-05/0.008371, allocations: 14.23 kB / 299.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000161/0.008532, allocations: 118.5 kB / 299.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.355e-05/0.008566, allocations: 55.34 kB / 299.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.162e-06/0.008572, allocations: 0 / 299.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.008603, allocations: 55.36 kB / 299.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.008604, allocations: 0 / 299.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of Templates: time 0.00583/0.01443, allocations: 4.172 MB / 304 MB, free: 10.53 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.959408634342253]