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.0009739/0.0009739, 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.001062/0.001062, 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.9781/0.9781, 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.2396/0.2396, allocations: 32.8 MB / 294.6 MB, free: 1.133 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.764e-06/1.764e-06, allocations: 0 / 323.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.357e-05, allocations: 2.969 kB / 323.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00171/0.001733, allocations: 0.5546 MB / 323.8 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.004865, allocations: 2.067 MB / 325.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.004883, allocations: 0 / 325.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.004897, allocations: 4 kB / 325.9 MB, free: 7.023 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.645e-06/0.004904, allocations: 4 kB / 325.9 MB, free: 7.02 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.001322/0.006226, allocations: 494.2 kB / 326.4 MB, free: 6.535 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.491e-05/0.006311, allocations: 0.625 kB / 326.4 MB, free: 6.535 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.46e-05/0.006366, allocations: 4 kB / 326.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.715e-05/0.006413, allocations: 0 / 326.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.936e-05/0.006442, allocations: 0 / 326.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.006453, allocations: 4 kB / 326.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.007522, allocations: 0.686 MB / 327.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.00753, allocations: 0 / 327.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.244e-05/0.007543, allocations: 0 / 327.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.007956, allocations: 463.4 kB / 327.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.007958, allocations: 0 / 327.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007958, allocations: 0 / 327.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.007963, allocations: 0 / 327.5 MB, free: 5.387 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.0002941/0.008257, allocations: 325.6 kB / 327.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.008291, allocations: 16.02 kB / 327.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.147e-05/0.008312, allocations: 0.9375 kB / 327.9 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.436e-05/0.008367, allocations: 101.8 kB / 328 MB, free: 4.898 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.008375, allocations: 4.312 kB / 328 MB, free: 4.895 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-06/0.008382, allocations: 4.375 kB / 328 MB, free: 4.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.068e-05/0.008442, allocations: 55.97 kB / 328 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.008448, allocations: 192 / 328 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-06/0.008454, allocations: 4.375 kB / 328 MB, free: 4.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.008461, allocations: 3.938 kB / 328 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.451e-05/0.008476, allocations: 29.69 kB / 328.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.192e-05/0.008538, allocations: 57.05 kB / 328.1 MB, free: 4.711 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.073e-05/0.008578, allocations: 48.22 kB / 328.2 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.711e-05/0.008596, allocations: 34.66 kB / 328.2 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-06/0.008599, allocations: 0 / 328.2 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.008632, allocations: 60.27 kB / 328.2 MB, free: 4.531 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.008633, allocations: 4 kB / 328.2 MB, free: 4.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000109/0.008742, allocations: 114.8 kB / 328.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.008773, allocations: 77.11 kB / 328.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.988e-05/0.008803, allocations: 89.86 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.729e-06/0.008812, allocations: 25.7 kB / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.24e-05/0.008835, allocations: 84.14 kB / 328.6 MB, free: 4.082 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.008851, allocations: 1.203 kB / 328.6 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.008878, allocations: 17.66 kB / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.698e-05/0.008955, allocations: 326.8 kB / 329 MB, free: 3.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.414e-05/0.008969, allocations: 29.77 kB / 329 MB, free: 3.695 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.146e-05/0.008981, allocations: 29.7 kB / 329 MB, free: 3.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.903e-05/0.00902, allocations: 60.27 kB / 329.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.009021, allocations: 0 / 329.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.572e-05/0.009077, allocations: 93.09 kB / 329.2 MB, free: 3.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.009103, allocations: 29.7 kB / 329.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.009107, allocations: 0 / 329.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.009118, allocations: 0 / 329.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.423e-06/0.009119, allocations: 0 / 329.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.009123, allocations: 3.938 kB / 329.2 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.086e-05/0.009134, allocations: 8.094 kB / 329.2 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.00914, allocations: 3.938 kB / 329.2 MB, free: 3.426 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 9.204e-05/0.009232, allocations: 131.5 kB / 329.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.009241, allocations: 7.984 kB / 329.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.346e-06/0.00925, allocations: 3 kB / 329.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.009251, allocations: 0 / 329.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.009253, allocations: 3.984 kB / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.009257, allocations: 0 / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.619e-05/0.009303, allocations: 66.19 kB / 329.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.009304, allocations: 0 / 329.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-07/0.009305, allocations: 4 kB / 329.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.009306, allocations: 0 / 329.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-06/0.00931, allocations: 0 / 329.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.009311, allocations: 0 / 329.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.009313, allocations: 4 kB / 329.4 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.247e-05/0.009385, allocations: 116.5 kB / 329.6 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-06/0.009389, allocations: 3.938 kB / 329.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.0094, allocations: 3.984 kB / 329.6 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-06/0.009406, allocations: 4 kB / 329.6 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-06/0.009414, allocations: 0 / 329.6 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.009416, allocations: 0 / 329.6 MB, free: 3.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.721e-06/0.009422, allocations: 8.891 kB / 329.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009422, allocations: 0 / 329.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002179/0.00964, allocations: 135.5 kB / 329.7 MB, free: 2.879 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.0005143/0.01015, allocations: 322.1 kB / 330 MB, free: 2.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.317e-05/0.01024, allocations: 123.7 kB / 330.1 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01024, allocations: 0 / 330.1 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.21e-05/0.01027, allocations: 93.94 kB / 330.2 MB, free: 2.309 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.081e-05/0.01032, allocations: 10.19 kB / 330.2 MB, free: 2.301 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001312/0.01045, allocations: 109.4 kB / 330.3 MB, free: 2.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.713e-05/0.01048, allocations: 55.34 kB / 330.4 MB, free: 2.086 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.01049, allocations: 0 / 330.4 MB, free: 2.086 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.01052, allocations: 51.38 kB / 330.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.01052, allocations: 0 / 330.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of Templates: time 0.007394/0.01791, allocations: 4.181 MB / 334.6 MB, free: 13.86 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 -s gbode -gbm=radauIIA3 -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: 2.98074849601835]