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.001577/0.001577, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001777/0.001777, allocations: 165.4 kB / 24.99 MB, free: 8.797 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.148/1.148, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.265/0.265, allocations: 34.27 MB / 296 MB, free: 0.793 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.402e-06/1.402e-06, allocations: 0 / 378 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.272e-05, allocations: 2.312 kB / 378 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001227/0.001249, allocations: 0.5197 MB / 378.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004594/0.005844, allocations: 2.062 MB / 380.6 MB, free: 400 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.005868, allocations: 0 / 380.6 MB, free: 400 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.005885, allocations: 0 / 380.6 MB, free: 400 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.943e-06/0.005892, allocations: 0 / 380.6 MB, free: 400 kB / 346.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.004266/0.01016, allocations: 0.5217 MB / 381.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.716e-05/0.0102, allocations: 4 kB / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.691e-05/0.01024, allocations: 7.984 kB / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.488e-05/0.01027, allocations: 0 / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.711e-05/0.01028, allocations: 0 / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.174e-06/0.01029, allocations: 0 / 381.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000861/0.01115, allocations: 0.647 MB / 381.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-06/0.01116, allocations: 0 / 381.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.01118, allocations: 0 / 381.8 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005242/0.0117, allocations: 470.8 kB / 382.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.0117, allocations: 0 / 382.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.0117, allocations: 0 / 382.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.01171, allocations: 0 / 382.2 MB, free: 14.75 MB / 362.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.000343/0.01205, allocations: 445.2 kB / 382.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.01209, allocations: 8.031 kB / 382.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.01212, allocations: 4.938 kB / 382.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.254e-05/0.01218, allocations: 116.6 kB / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.01219, allocations: 384 / 382.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.0122, allocations: 4.312 kB / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003095/0.0153, allocations: 55.97 kB / 382.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.0153, allocations: 192 / 382.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.01531, allocations: 384 / 382.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.01532, allocations: 3.938 kB / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.01534, allocations: 25.7 kB / 382.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.443e-05/0.01543, allocations: 108.6 kB / 383 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.969e-05/0.01548, allocations: 60.78 kB / 383 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.048e-05/0.0155, allocations: 41.33 kB / 383.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-06/0.01551, allocations: 0 / 383.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.01554, allocations: 63.16 kB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.01555, allocations: 3.984 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000169/0.01572, allocations: 114.8 kB / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002864/0.016, allocations: 85.05 kB / 383.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.635e-05/0.01605, allocations: 142.2 kB / 383.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.01606, allocations: 25.7 kB / 383.5 MB, free: 13.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.793e-05/0.01609, allocations: 126.9 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.0161, allocations: 12.42 kB / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.01613, allocations: 15.38 kB / 383.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.01624, allocations: 492.1 kB / 384.1 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.411e-05/0.01627, allocations: 37.62 kB / 384.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.183e-05/0.01628, allocations: 25.7 kB / 384.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.682e-05/0.01633, allocations: 71.03 kB / 384.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.01633, allocations: 0 / 384.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.161e-05/0.0164, allocations: 85.11 kB / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.01643, allocations: 33.69 kB / 384.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.01643, allocations: 96 / 384.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.01644, allocations: 8 kB / 384.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.01644, allocations: 0 / 384.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.01645, allocations: 3.938 kB / 384.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.01647, allocations: 4 kB / 384.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.01647, allocations: 3.938 kB / 384.4 MB, free: 12.26 MB / 362.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 6.91e-05/0.01654, allocations: 186.3 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-06/0.01655, allocations: 0 / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-06/0.01655, allocations: 3 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.01656, allocations: 3.984 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.01656, allocations: 4 kB / 384.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01656, allocations: 7.938 kB / 384.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.559e-05/0.01662, allocations: 104.6 kB / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.01662, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.01662, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.01662, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.01663, allocations: 4 kB / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.01663, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.01663, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.035e-05/0.01672, allocations: 131.8 kB / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-06/0.01672, allocations: 0 / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.01674, allocations: 8.031 kB / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-06/0.01675, allocations: 3.938 kB / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.204e-05/0.01676, allocations: 3.984 kB / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-06/0.01676, allocations: 0 / 384.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.905e-05/0.01679, allocations: 123.1 kB / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01679, allocations: 0 / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003637/0.01715, allocations: 135.5 kB / 385.1 MB, free: 11.47 MB / 362.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.0006093/0.01776, allocations: 339.6 kB / 385.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.713e-05/0.01786, allocations: 122.5 kB / 385.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01786, allocations: 0 / 385.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.157e-05/0.01789, allocations: 92.78 kB / 385.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.01801, allocations: 4 kB / 385.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.0212, allocations: 118.5 kB / 385.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.082e-05/0.02123, allocations: 55.3 kB / 385.8 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.421e-06/0.02123, allocations: 4.125 kB / 385.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.275e-05/0.02124, allocations: 12.5 kB / 385.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.02125, allocations: 0 / 385.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of Templates: time 0.006209/0.02745, allocations: 3.525 MB / 389.4 MB, free: 7.109 MB / 362.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.4090149118565023]