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.00118/0.00118, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 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.001583/0.001583, allocations: 168.8 kB / 24.91 MB, free: 9.156 MB / 18.57 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.08/1.08, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.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.2711/0.2711, allocations: 34.26 MB / 296.1 MB, free: 0.6602 MB / 266.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.352e-06/1.352e-06, allocations: 0 / 325.2 MB, free: 7.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.034e-05, allocations: 5.625 kB / 325.2 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001107/0.001127, allocations: 0.5128 MB / 325.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.003475, allocations: 2.063 MB / 327.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.608e-05/0.003491, allocations: 0 / 327.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.003504, allocations: 0 / 327.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.003511, allocations: 0 / 327.8 MB, free: 5.062 MB / 298.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.001105/0.004615, allocations: 0.5295 MB / 328.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.197e-05/0.004657, allocations: 8.625 kB / 328.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.074e-05/0.004688, allocations: 0 / 328.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.442e-05/0.004712, allocations: 0 / 328.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.891e-05/0.004731, allocations: 4 kB / 328.4 MB, free: 4.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.374e-06/0.004739, allocations: 3.938 kB / 328.4 MB, free: 4.516 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007216/0.00546, allocations: 0.6392 MB / 329 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.005468, allocations: 0 / 329 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.161e-05/0.00548, allocations: 0 / 329 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004336/0.005914, allocations: 458.8 kB / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.332e-06/0.005915, allocations: 0 / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005916, allocations: 0 / 329.4 MB, free: 3.426 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.016e-06/0.005919, allocations: 0 / 329.4 MB, free: 3.426 MB / 298.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.0002734/0.006192, allocations: 326.1 kB / 329.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.00623, allocations: 12.03 kB / 329.8 MB, free: 3.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.006264, allocations: 8.938 kB / 329.8 MB, free: 3.059 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.677e-05/0.00633, allocations: 105.7 kB / 329.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.006341, allocations: 384 / 329.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.00635, allocations: 4.375 kB / 329.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.22e-05/0.006423, allocations: 55.95 kB / 329.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.006428, allocations: 192 / 329.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-06/0.006434, allocations: 384 / 329.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.006439, allocations: 7.938 kB / 330 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.833e-05/0.006457, allocations: 29.69 kB / 330 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.881e-05/0.006526, allocations: 61.03 kB / 330 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.001e-05/0.006576, allocations: 48.22 kB / 330.1 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.034e-05/0.006596, allocations: 34.66 kB / 330.1 MB, free: 2.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-06/0.0066, allocations: 0 / 330.1 MB, free: 2.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.006636, allocations: 64.27 kB / 330.2 MB, free: 2.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.006637, allocations: 0 / 330.2 MB, free: 2.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001201/0.006757, allocations: 114.8 kB / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.006797, allocations: 81.05 kB / 330.4 MB, free: 2.324 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.461e-05/0.006832, allocations: 94.48 kB / 330.5 MB, free: 2.223 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.006843, allocations: 25.7 kB / 330.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.043e-05/0.006863, allocations: 80.14 kB / 330.6 MB, free: 2.109 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.006881, allocations: 8.812 kB / 330.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.0069, allocations: 9.719 kB / 330.6 MB, free: 2.086 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.497e-05/0.006975, allocations: 322.8 kB / 330.9 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.327e-05/0.006988, allocations: 25.7 kB / 330.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.739e-05/0.007006, allocations: 25.7 kB / 331 MB, free: 1.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.95e-05/0.007045, allocations: 64.27 kB / 331 MB, free: 1.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.007046, allocations: 0 / 331 MB, free: 1.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.254e-05/0.007089, allocations: 85.09 kB / 331.1 MB, free: 1.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.007111, allocations: 33.7 kB / 331.1 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.007117, allocations: 8.031 kB / 331.1 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.007129, allocations: 0 / 331.1 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.885e-06/0.007132, allocations: 0 / 331.1 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.856e-06/0.007135, allocations: 0 / 331.1 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.699e-06/0.007144, allocations: 4 kB / 331.1 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.00715, allocations: 3.938 kB / 331.2 MB, free: 1.465 MB / 298.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 5.101e-05/0.007201, allocations: 139.5 kB / 331.3 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-06/0.007206, allocations: 4 kB / 331.3 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-06/0.007214, allocations: 3 kB / 331.3 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.007216, allocations: 0 / 331.3 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.007217, allocations: 4 kB / 331.3 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.00722, allocations: 0 / 331.3 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.753e-05/0.007267, allocations: 66.19 kB / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007268, allocations: 0 / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.31e-07/0.007269, allocations: 0 / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.007269, allocations: 0 / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-06/0.007273, allocations: 0 / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.007274, allocations: 0 / 331.4 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.007275, allocations: 4 kB / 331.4 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.706e-05/0.007332, allocations: 120.4 kB / 331.5 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.007337, allocations: 4 kB / 331.5 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.007347, allocations: 8.016 kB / 331.5 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.05e-06/0.007352, allocations: 4 kB / 331.5 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.484e-06/0.00736, allocations: 0 / 331.5 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-06/0.007361, allocations: 3.938 kB / 331.5 MB, free: 1.051 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.34e-06/0.007366, allocations: 4.859 kB / 331.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007366, allocations: 0 / 331.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.007625, allocations: 131.5 kB / 331.6 MB, free: 0.9141 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.000483/0.008108, allocations: 324.4 kB / 332 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.071e-05/0.008199, allocations: 123.7 kB / 332.1 MB, free: 468 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.008201, allocations: 0 / 332.1 MB, free: 468 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.008228, allocations: 89.97 kB / 332.2 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.323e-05/0.008271, allocations: 10.59 kB / 332.2 MB, free: 348 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001461/0.008417, allocations: 109.9 kB / 332.3 MB, free: 204 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.399e-05/0.008441, allocations: 55.34 kB / 332.3 MB, free: 128 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.559e-06/0.008446, allocations: 4.125 kB / 332.3 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.008473, allocations: 55.36 kB / 332.4 MB, free: 68 kB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.008473, allocations: 0 / 332.4 MB, free: 68 kB / 298.7 MB Notification: Performance of Templates: time 0.005052/0.01352, allocations: 4.176 MB / 336.6 MB, free: 11.89 MB / 314.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 -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: 3.0878110718913376]