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.0009589/0.0009589, allocations: 79.73 kB / 9.881 MB, free: 0.8125 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001111/0.00207, allocations: 447.8 kB / 10.32 MB, free: 380 kB / 10.45 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.001031/0.001031, allocations: 161.5 kB / 11.21 MB, free: 2.965 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00108/0.002111, allocations: 476.2 kB / 11.68 MB, free: 2.5 MB / 13.93 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.03/1.03, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09813/1.129, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.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.2397/0.2397, allocations: 32.81 MB / 276.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02385/0.2636, allocations: 12.52 MB / 289.3 MB, free: 8.707 MB / 282.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.312e-06/1.312e-06, allocations: 0 / 290.6 MB, free: 7.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.383e-05, allocations: 2.312 kB / 290.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001012/0.001026, allocations: 0.5612 MB / 291.1 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.003062, allocations: 2.067 MB / 293.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.334e-05/0.003075, allocations: 2 kB / 293.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.045e-06/0.003078, allocations: 0 / 293.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.22e-07/0.003079, allocations: 0 / 293.2 MB, free: 5.625 MB / 282.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.0007678/0.003847, allocations: 491.9 kB / 293.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.361e-05/0.003891, allocations: 8 kB / 293.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.974e-05/0.00392, allocations: 0 / 293.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.741e-05/0.003948, allocations: 3.984 kB / 293.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.956e-05/0.003967, allocations: 0 / 293.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.673e-06/0.003974, allocations: 4 kB / 293.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007045/0.004678, allocations: 0.686 MB / 294.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.004685, allocations: 0 / 294.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.457e-05/0.0047, allocations: 4 kB / 294.4 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.005127, allocations: 466.7 kB / 294.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.452e-05/0.005142, allocations: 0 / 294.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005142, allocations: 0 / 294.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.005158, allocations: 0 / 294.8 MB, free: 4.051 MB / 282.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.0003413/0.0055, allocations: 325.6 kB / 295.2 MB, free: 3.703 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.005529, allocations: 12.03 kB / 295.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.005563, allocations: 0.9375 kB / 295.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.854e-05/0.005622, allocations: 109.8 kB / 295.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.005632, allocations: 384 / 295.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.005642, allocations: 384 / 295.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.491e-05/0.005717, allocations: 59.95 kB / 295.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.962e-06/0.005723, allocations: 192 / 295.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-06/0.005729, allocations: 384 / 295.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.005737, allocations: 7.875 kB / 295.3 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.591e-05/0.005753, allocations: 29.7 kB / 295.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.648e-05/0.00581, allocations: 53.05 kB / 295.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.495e-05/0.005854, allocations: 48.31 kB / 295.5 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.005871, allocations: 38.55 kB / 295.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-06/0.005875, allocations: 4.062 kB / 295.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.005914, allocations: 56.27 kB / 295.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.005914, allocations: 0 / 295.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001184/0.006033, allocations: 114.8 kB / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.006068, allocations: 81.09 kB / 295.8 MB, free: 2.961 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.333e-05/0.006101, allocations: 89.86 kB / 295.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.006108, allocations: 25.7 kB / 295.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.728e-05/0.006126, allocations: 84.27 kB / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.006139, allocations: 7.984 kB / 296 MB, free: 2.738 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.00616, allocations: 9.719 kB / 296 MB, free: 2.723 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.884e-05/0.006229, allocations: 318.8 kB / 296.3 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.00624, allocations: 25.7 kB / 296.3 MB, free: 2.371 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.113e-05/0.006251, allocations: 29.64 kB / 296.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.921e-05/0.00629, allocations: 72.19 kB / 296.4 MB, free: 2.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.006292, allocations: 0 / 296.4 MB, free: 2.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.402e-05/0.006336, allocations: 85.11 kB / 296.5 MB, free: 2.148 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.006367, allocations: 29.8 kB / 296.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.006371, allocations: 7.984 kB / 296.5 MB, free: 2.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.234e-06/0.006379, allocations: 4 kB / 296.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.626e-06/0.006382, allocations: 0 / 296.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.006385, allocations: 0 / 296.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.006399, allocations: 0.6875 kB / 296.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.006405, allocations: 3.938 kB / 296.5 MB, free: 2.098 MB / 282.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.226e-05/0.006458, allocations: 135.5 kB / 296.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-06/0.006461, allocations: 0 / 296.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-06/0.006468, allocations: 3 kB / 296.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.006469, allocations: 0 / 296.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-06/0.006471, allocations: 8 kB / 296.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.006473, allocations: 0 / 296.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.097e-05/0.006514, allocations: 65.83 kB / 296.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.006515, allocations: 0 / 296.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.006515, allocations: 0 / 296.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.006516, allocations: 7.938 kB / 296.7 MB, free: 1.852 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-06/0.006519, allocations: 4 kB / 296.7 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.00652, allocations: 0 / 296.7 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.00652, allocations: 0 / 296.7 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.378e-05/0.006574, allocations: 116.5 kB / 296.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-06/0.006578, allocations: 8.031 kB / 296.9 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-06/0.006587, allocations: 0 / 296.9 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-06/0.006591, allocations: 0 / 296.9 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-06/0.006598, allocations: 0 / 296.9 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.006601, allocations: 4 kB / 296.9 MB, free: 1.691 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.783e-06/0.006607, allocations: 4.859 kB / 296.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006607, allocations: 0 / 296.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002049/0.006812, allocations: 131.5 kB / 297 MB, free: 1.555 MB / 282.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.0007588/0.007571, allocations: 344.8 kB / 297.3 MB, free: 1.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.226e-05/0.007653, allocations: 115.6 kB / 297.5 MB, free: 1.082 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.007656, allocations: 4 kB / 297.5 MB, free: 1.078 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.503e-05/0.007681, allocations: 85.97 kB / 297.5 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.426e-05/0.007726, allocations: 11.92 kB / 297.6 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001385/0.007864, allocations: 110.8 kB / 297.7 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.602e-05/0.00789, allocations: 59.48 kB / 297.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.007895, allocations: 0 / 297.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.007925, allocations: 55.36 kB / 297.8 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of SimCode: time 6.22e-07/0.007925, allocations: 0 / 297.8 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of Templates: time 0.004991/0.01292, allocations: 4.175 MB / 302 MB, free: 12.52 MB / 298.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: 2.9671197654679418]