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.001253/0.001253, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001514/0.001514, allocations: 167 kB / 24.82 MB, free: 9.27 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.16/1.16, allocations: 177.1 MB / 205.3 MB, free: 5.523 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.2963/0.2963, allocations: 34.26 MB / 296.1 MB, free: 0.6406 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 2.344e-06/2.344e-06, allocations: 0 / 378.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.384e-05/1.618e-05, allocations: 5.125 kB / 378.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0009062/0.0009224, allocations: 0.5086 MB / 379 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.003266, allocations: 2.047 MB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.405e-05/0.00328, allocations: 0 / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.216e-05/0.003292, allocations: 4 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 5.019e-06/0.003297, allocations: 0 / 381.1 MB, free: 15.79 MB / 362.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.0008437/0.004141, allocations: 0.5256 MB / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 3.45e-05/0.004175, allocations: 7.984 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.059e-05/0.004196, allocations: 0 / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.066e-05/0.004216, allocations: 0 / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.105e-05/0.004228, allocations: 3.984 kB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-06/0.004234, allocations: 4 kB / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006121/0.004846, allocations: 0.6392 MB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-06/0.004853, allocations: 3.938 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.213e-05/0.004865, allocations: 0 / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000389/0.005254, allocations: 466.8 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.005256, allocations: 0 / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005256, allocations: 0 / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.926e-06/0.005259, allocations: 0 / 382.7 MB, free: 14.14 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.0006192/0.005878, allocations: 449.2 kB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.005909, allocations: 8.031 kB / 383.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.077e-05/0.00593, allocations: 8.938 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.721e-05/0.005977, allocations: 104.6 kB / 383.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.005984, allocations: 384 / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-06/0.005989, allocations: 384 / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.416e-05/0.006043, allocations: 59.97 kB / 383.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-06/0.006047, allocations: 192 / 383.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.501e-06/0.006052, allocations: 8.297 kB / 383.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.006057, allocations: 3.938 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.558e-05/0.006073, allocations: 29.7 kB / 383.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.063e-05/0.006134, allocations: 89.27 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.543e-05/0.006169, allocations: 56.8 kB / 383.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.624e-05/0.006185, allocations: 33.39 kB / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.00619, allocations: 4.062 kB / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.006223, allocations: 63.08 kB / 383.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.006224, allocations: 4 kB / 383.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001079/0.006332, allocations: 114.8 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.006362, allocations: 77.11 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.119e-05/0.006404, allocations: 146.2 kB / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.006412, allocations: 29.7 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.006446, allocations: 130.9 kB / 384.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.006461, allocations: 8.297 kB / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.006482, allocations: 15.38 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.006599, allocations: 0.4883 MB / 384.6 MB, free: 12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.006616, allocations: 25.7 kB / 384.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.399e-05/0.00663, allocations: 29.83 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.55e-05/0.006665, allocations: 67.03 kB / 384.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.006666, allocations: 0 / 384.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.465e-05/0.006711, allocations: 89.09 kB / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.006735, allocations: 37.64 kB / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.006738, allocations: 0 / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.006754, allocations: 0 / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.006755, allocations: 0 / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-06/0.006759, allocations: 0 / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.167e-06/0.006768, allocations: 3.938 kB / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-06/0.006771, allocations: 4.094 kB / 384.8 MB, free: 11.69 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 5.97e-05/0.006831, allocations: 190.3 kB / 385 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-06/0.006834, allocations: 0 / 385 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-06/0.006842, allocations: 7 kB / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-07/0.006843, allocations: 0 / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.006844, allocations: 0 / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.006847, allocations: 0 / 385 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.555e-05/0.006893, allocations: 93.2 kB / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.006894, allocations: 3.938 kB / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.313e-06/0.006895, allocations: 7.938 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-07/0.006896, allocations: 4 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-06/0.0069, allocations: 3.984 kB / 385.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.0069, allocations: 0 / 385.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.006901, allocations: 0 / 385.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.19e-05/0.006973, allocations: 131.8 kB / 385.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.006978, allocations: 11.97 kB / 385.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-06/0.006986, allocations: 0 / 385.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.978e-06/0.00699, allocations: 0 / 385.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-06/0.006999, allocations: 0 / 385.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-06/0.007, allocations: 0 / 385.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.994e-05/0.00703, allocations: 123.2 kB / 385.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00703, allocations: 4 kB / 385.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.007252, allocations: 131.5 kB / 385.5 MB, free: 10.92 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.0004404/0.007692, allocations: 339.9 kB / 385.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.712e-05/0.00777, allocations: 122.4 kB / 386 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.007771, allocations: 0 / 386 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.009e-05/0.007801, allocations: 96.78 kB / 386.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.191e-05/0.007873, allocations: 7.938 kB / 386.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001177/0.00799, allocations: 110.5 kB / 386.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.471e-05/0.008015, allocations: 51.36 kB / 386.3 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.939e-06/0.00802, allocations: 3.984 kB / 386.3 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.008051, allocations: 70.2 kB / 386.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.008051, allocations: 0 / 386.3 MB, free: 10.03 MB / 362.7 MB Notification: Performance of Templates: time 0.005311/0.01336, allocations: 4.192 MB / 390.5 MB, free: 5.836 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.5052980966866016]