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.0009437/0.0009437, allocations: 80.92 kB / 21.49 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.001001/0.001001, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.9754/0.9754, allocations: 177.1 MB / 205.3 MB, free: 5.098 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.272/0.272, allocations: 32.8 MB / 294.6 MB, free: 1.199 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 9.42e-07/9.42e-07, allocations: 0 / 323.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.424e-05, allocations: 3.672 kB / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0008973/0.0009115, allocations: 0.5146 MB / 323.7 MB, free: 9.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.003238, allocations: 2.07 MB / 325.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.165e-05/0.00325, allocations: 0 / 325.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.043e-05/0.00326, allocations: 0 / 325.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.787e-06/0.003264, allocations: 0 / 325.8 MB, free: 7.141 MB / 298.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.001199/0.004463, allocations: 0.5295 MB / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.602e-05/0.004499, allocations: 0.625 kB / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.34e-05/0.004522, allocations: 4 kB / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.004543, allocations: 0 / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.175e-05/0.004554, allocations: 0 / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-06/0.00456, allocations: 0 / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000906/0.005466, allocations: 0.647 MB / 327 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.041e-06/0.005472, allocations: 0 / 327 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.568e-06/0.005481, allocations: 0 / 327 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004334/0.005915, allocations: 459.4 kB / 327.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.332e-06/0.005916, allocations: 0 / 327.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.005917, allocations: 0 / 327.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.756e-06/0.00592, allocations: 4 kB / 327.4 MB, free: 5.504 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.0002525/0.006172, allocations: 325.6 kB / 327.7 MB, free: 5.156 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.558e-05/0.006198, allocations: 8.031 kB / 327.8 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.968e-05/0.006217, allocations: 8.875 kB / 327.8 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.437e-05/0.006262, allocations: 101.8 kB / 327.9 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.00627, allocations: 384 / 327.9 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-06/0.006277, allocations: 4.312 kB / 327.9 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.232e-05/0.006329, allocations: 55.97 kB / 327.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-06/0.006334, allocations: 192 / 327.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-06/0.006339, allocations: 384 / 327.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.006344, allocations: 11.92 kB / 327.9 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.346e-05/0.006358, allocations: 29.7 kB / 328 MB, free: 4.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.097e-05/0.006409, allocations: 53.05 kB / 328 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.005e-05/0.006449, allocations: 52.3 kB / 328.1 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.475e-05/0.006464, allocations: 34.5 kB / 328.1 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-06/0.006467, allocations: 0 / 328.1 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.006495, allocations: 64.33 kB / 328.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.006495, allocations: 0 / 328.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.72e-05/0.006582, allocations: 110.8 kB / 328.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.006614, allocations: 81.23 kB / 328.3 MB, free: 4.414 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.836e-05/0.006643, allocations: 93.86 kB / 328.4 MB, free: 4.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-06/0.006649, allocations: 25.7 kB / 328.5 MB, free: 4.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.789e-05/0.006667, allocations: 80.14 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.00668, allocations: 1.203 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.006709, allocations: 17.7 kB / 328.6 MB, free: 4.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.006785, allocations: 318.8 kB / 328.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.423e-05/0.0068, allocations: 37.64 kB / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.006812, allocations: 25.7 kB / 328.9 MB, free: 3.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.338e-05/0.006845, allocations: 60.27 kB / 329 MB, free: 3.707 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.006846, allocations: 4.062 kB / 329 MB, free: 3.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.308e-05/0.006889, allocations: 85.09 kB / 329.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.006913, allocations: 33.7 kB / 329.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-06/0.006916, allocations: 0 / 329.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.006927, allocations: 0 / 329.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.00693, allocations: 0 / 329.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.006934, allocations: 3.984 kB / 329.1 MB, free: 3.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.135e-06/0.006943, allocations: 0 / 329.1 MB, free: 3.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.006948, allocations: 7.938 kB / 329.1 MB, free: 3.551 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.376e-05/0.007002, allocations: 143.5 kB / 329.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-06/0.007007, allocations: 11.97 kB / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.21e-06/0.007012, allocations: 3 kB / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.007013, allocations: 0 / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.007014, allocations: 0 / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.007017, allocations: 0 / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.755e-05/0.007055, allocations: 62.19 kB / 329.3 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.007056, allocations: 4 kB / 329.3 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.007056, allocations: 0 / 329.3 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.12e-07/0.007057, allocations: 0 / 329.3 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-06/0.007061, allocations: 0 / 329.3 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.007063, allocations: 3.984 kB / 329.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.007063, allocations: 4 kB / 329.4 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.429e-05/0.007118, allocations: 116.5 kB / 329.5 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-06/0.007121, allocations: 3.984 kB / 329.5 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.876e-06/0.00713, allocations: 0 / 329.5 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.907e-06/0.007134, allocations: 0 / 329.5 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.184e-06/0.007141, allocations: 3.938 kB / 329.5 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-06/0.007143, allocations: 4 kB / 329.5 MB, free: 3.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.66e-06/0.007148, allocations: 4.859 kB / 329.5 MB, free: 3.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007148, allocations: 0 / 329.5 MB, free: 3.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002635/0.007412, allocations: 135.5 kB / 329.6 MB, free: 2.996 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.0004701/0.007882, allocations: 324.4 kB / 329.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.646e-05/0.007958, allocations: 127.7 kB / 330.1 MB, free: 2.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.00796, allocations: 0 / 330.1 MB, free: 2.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.689e-05/0.007987, allocations: 85.97 kB / 330.1 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.384e-05/0.008021, allocations: 8.062 kB / 330.1 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001146/0.008136, allocations: 113.4 kB / 330.3 MB, free: 2.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.467e-05/0.00816, allocations: 55.36 kB / 330.3 MB, free: 2.203 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.899e-06/0.008165, allocations: 3.938 kB / 330.3 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/0.008194, allocations: 51.38 kB / 330.4 MB, free: 2.148 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.008194, allocations: 0 / 330.4 MB, free: 2.148 MB / 298.7 MB Notification: Performance of Templates: time 0.006017/0.01421, allocations: 4.171 MB / 334.5 MB, free: 13.98 MB / 314.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.097969819791615]