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.001173/0.001173, allocations: 77.97 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.004338/0.004338, allocations: 166.8 kB / 24.82 MB, free: 9.258 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 0.9828/0.9828, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.2706/0.2706, allocations: 32.81 MB / 294.6 MB, free: 1.23 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 1.573e-06/1.573e-06, allocations: 3.938 kB / 376.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.275e-05, allocations: 5.828 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.004273/0.004295, allocations: 0.5241 MB / 377 MB, free: 3.879 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.006804, allocations: 2.039 MB / 379 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.006823, allocations: 4 kB / 379 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.006839, allocations: 0 / 379 MB, free: 1.812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.57e-06/0.006845, allocations: 0 / 379 MB, free: 1.812 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.004278/0.01112, allocations: 0.5334 MB / 379.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.383e-05/0.01117, allocations: 0 / 379.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.966e-05/0.0112, allocations: 0 / 379.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.01123, allocations: 11.94 kB / 379.6 MB, free: 1.266 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.446e-05/0.01124, allocations: 0 / 379.6 MB, free: 1.266 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.01125, allocations: 0 / 379.6 MB, free: 1.266 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008361/0.01208, allocations: 0.6314 MB / 380.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-06/0.01209, allocations: 0 / 380.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.252e-05/0.0121, allocations: 8 kB / 380.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.01262, allocations: 458.8 kB / 380.7 MB, free: 180 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.01263, allocations: 4 kB / 380.7 MB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01263, allocations: 0 / 380.7 MB, free: 176 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.01263, allocations: 3.938 kB / 380.7 MB, free: 172 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.0003407/0.01297, allocations: 441.3 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.01301, allocations: 16.03 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.01303, allocations: 0.9375 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.0161, allocations: 104.6 kB / 381.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.01611, allocations: 384 / 381.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-06/0.01612, allocations: 4.375 kB / 381.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.831e-05/0.01619, allocations: 55.95 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.0162, allocations: 192 / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.0162, allocations: 8.375 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.01621, allocations: 3.938 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.732e-05/0.01623, allocations: 29.64 kB / 381.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.974e-05/0.01631, allocations: 97.27 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.89e-05/0.01634, allocations: 52.75 kB / 381.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.089e-05/0.01637, allocations: 41.47 kB / 381.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-06/0.01637, allocations: 0 / 381.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.0164, allocations: 59.09 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.0164, allocations: 3.938 kB / 381.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.01655, allocations: 126.7 kB / 381.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.01658, allocations: 81.11 kB / 381.8 MB, free: 14.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.396e-05/0.01663, allocations: 142.2 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.01663, allocations: 25.83 kB / 381.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.01666, allocations: 130.9 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.01668, allocations: 4.297 kB / 382.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.01671, allocations: 19.38 kB / 382.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.01683, allocations: 496.1 kB / 382.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.494e-05/0.01684, allocations: 25.7 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.52e-05/0.01686, allocations: 33.69 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.263e-05/0.0169, allocations: 63.09 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.0169, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.371e-05/0.01697, allocations: 89.05 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.017, allocations: 37.8 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.017, allocations: 3.984 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.01701, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.01701, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-06/0.01701, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.01703, allocations: 3.938 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.01703, allocations: 4 kB / 382.8 MB, free: 13.71 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.911e-05/0.0171, allocations: 178.3 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-06/0.01711, allocations: 4 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.01712, allocations: 3 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.01712, allocations: 4 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.01712, allocations: 0 / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01713, allocations: 4 kB / 383 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.137e-05/0.01719, allocations: 101.2 kB / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.22e-07/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-06/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.02e-07/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.01719, allocations: 0 / 383.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.653e-05/0.01728, allocations: 147.7 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.916e-06/0.01728, allocations: 0 / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.636e-06/0.01729, allocations: 3.938 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.452e-06/0.0173, allocations: 0 / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-06/0.01731, allocations: 4 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-06/0.01731, allocations: 0 / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.948e-05/0.01734, allocations: 119.2 kB / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01734, allocations: 0 / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003766/0.01771, allocations: 135.5 kB / 383.5 MB, free: 12.95 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.0005586/0.01827, allocations: 332.1 kB / 383.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.53e-05/0.01836, allocations: 122.4 kB / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01836, allocations: 0 / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.129e-05/0.01839, allocations: 88.8 kB / 384 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001078/0.0185, allocations: 9.812 kB / 384.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001332/0.01863, allocations: 118.5 kB / 384.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.439e-05/0.01866, allocations: 55.36 kB / 384.2 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.619e-06/0.01866, allocations: 0 / 384.2 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.01869, allocations: 70.2 kB / 384.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.01869, allocations: 0 / 384.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of Templates: time 0.01075/0.02945, allocations: 4.199 MB / 388.5 MB, free: 7.867 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.053471765946597]