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.001007/0.001007, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.0009523/0.0009523, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.006/1.006, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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.3202/0.3202, allocations: 32.81 MB / 294.3 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 376 MB, free: 4.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.655e-05/3.859e-05, allocations: 5.828 kB / 376 MB, free: 4.633 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001309/0.001348, allocations: 0.5124 MB / 376.5 MB, free: 4.117 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.003943, allocations: 2.066 MB / 378.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.101e-05/0.003964, allocations: 0 / 378.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.252e-05/0.003987, allocations: 0 / 378.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.772e-06/0.003994, allocations: 0 / 378.6 MB, free: 2.027 MB / 346.7 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.001427/0.00542, allocations: 0.5294 MB / 379.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.303e-05/0.005493, allocations: 4 kB / 379.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.005534, allocations: 0 / 379.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.889e-05/0.005573, allocations: 11.92 kB / 379.1 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.238e-05/0.005595, allocations: 0 / 379.1 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-06/0.005604, allocations: 0 / 379.1 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009903/0.006594, allocations: 0.647 MB / 379.8 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.064e-05/0.006605, allocations: 0 / 379.8 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.006632, allocations: 3.984 kB / 379.8 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.007227, allocations: 462.8 kB / 380.2 MB, free: 384 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.007232, allocations: 0 / 380.2 MB, free: 384 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.007234, allocations: 0 / 380.2 MB, free: 384 kB / 346.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.007242, allocations: 0 / 380.2 MB, free: 384 kB / 346.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.0005005/0.007742, allocations: 449.3 kB / 380.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.007794, allocations: 12.03 kB / 380.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.007847, allocations: 0.9375 kB / 380.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.255e-05/0.00792, allocations: 108.6 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.007933, allocations: 384 / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.007945, allocations: 4.375 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.008053, allocations: 63.89 kB / 380.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.008062, allocations: 192 / 380.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.008077, allocations: 384 / 380.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.008091, allocations: 3.938 kB / 380.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.164e-05/0.008113, allocations: 29.64 kB / 380.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001023/0.008215, allocations: 108.6 kB / 381 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.226e-05/0.008268, allocations: 56.8 kB / 381.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.156e-05/0.008289, allocations: 33.39 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.008296, allocations: 3.984 kB / 381.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.008344, allocations: 71.09 kB / 381.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.008345, allocations: 0 / 381.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001987/0.008544, allocations: 110.8 kB / 381.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.008594, allocations: 85.03 kB / 381.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.299e-05/0.008647, allocations: 142.2 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.00866, allocations: 25.7 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.498e-05/0.008695, allocations: 135 kB / 381.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.008718, allocations: 8.297 kB / 381.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.008743, allocations: 15.38 kB / 381.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.008877, allocations: 492.1 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.686e-05/0.008904, allocations: 29.7 kB / 382.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.487e-05/0.008919, allocations: 25.7 kB / 382.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.008975, allocations: 71.02 kB / 382.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.008977, allocations: 0 / 382.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.064e-05/0.009048, allocations: 89.11 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.009079, allocations: 29.8 kB / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.009085, allocations: 7.984 kB / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.009101, allocations: 4 kB / 382.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-06/0.009107, allocations: 0 / 382.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.009115, allocations: 7.922 kB / 382.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.00913, allocations: 0 / 382.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.009139, allocations: 0 / 382.4 MB, free: 13.89 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 0.0001026/0.009241, allocations: 182.3 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.402e-06/0.009248, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.009259, allocations: 3 kB / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.009261, allocations: 0 / 382.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.009267, allocations: 11.94 kB / 382.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.009272, allocations: 3.938 kB / 382.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.819e-05/0.00935, allocations: 112.6 kB / 382.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.009351, allocations: 0 / 382.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.009352, allocations: 0 / 382.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.009355, allocations: 3.938 kB / 382.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.009364, allocations: 4 kB / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.009366, allocations: 4 kB / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.009368, allocations: 0 / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.009492, allocations: 131.8 kB / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.009499, allocations: 4.031 kB / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.009523, allocations: 4 kB / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.009531, allocations: 0 / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.009549, allocations: 0 / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.009552, allocations: 0 / 382.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.488e-05/0.009597, allocations: 123.1 kB / 383 MB, free: 13.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.009597, allocations: 0 / 383 MB, free: 13.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004026/0.01, allocations: 139.5 kB / 383.1 MB, free: 13.1 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.0007089/0.01071, allocations: 336 kB / 383.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.01084, allocations: 122.5 kB / 383.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.01085, allocations: 0 / 383.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.111e-05/0.01088, allocations: 88.8 kB / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.939e-05/0.01098, allocations: 9.656 kB / 383.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002238/0.0112, allocations: 114.5 kB / 383.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.354e-05/0.01123, allocations: 55.48 kB / 383.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.974e-06/0.01124, allocations: 0 / 383.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.559e-05/0.01126, allocations: 12.5 kB / 383.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.01126, allocations: 0 / 383.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of Templates: time 0.006825/0.01808, allocations: 4.173 MB / 388 MB, free: 8.098 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] 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","",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.4100244380533695]