Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.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.001079/0.001079, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001538/0.002616, allocations: 449.8 kB / 10.44 MB, free: 252 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.001084/0.001084, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00164/0.002724, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.047/1.047, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1157/1.163, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2457/0.2457, allocations: 34.26 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02245/0.2682, allocations: 13.1 MB / 291.5 MB, free: 7.344 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 292.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.432e-05, allocations: 7.406 kB / 292.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001436/0.00146, allocations: 0.5572 MB / 293.4 MB, free: 5.656 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.003405, allocations: 1.989 MB / 295.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.541e-05/0.003421, allocations: 0 / 295.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.017e-06/0.003425, allocations: 4 kB / 295.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.052e-06/0.003426, allocations: 4 kB / 295.4 MB, free: 3.637 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.004589, allocations: 450.3 kB / 295.8 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.73e-05/0.004657, allocations: 8 kB / 295.8 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.004696, allocations: 0 / 295.8 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.311e-05/0.004739, allocations: 11.97 kB / 295.8 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.591e-05/0.004765, allocations: 0 / 295.8 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.969e-06/0.004775, allocations: 3.938 kB / 295.9 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008084/0.005584, allocations: 0.6861 MB / 296.5 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.005597, allocations: 4 kB / 296.5 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.339e-05/0.005611, allocations: 0 / 296.5 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004641/0.006075, allocations: 359.1 kB / 296.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.006084, allocations: 4 kB / 296.9 MB, free: 2.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.006086, allocations: 0 / 296.9 MB, free: 2.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.006096, allocations: 3.938 kB / 296.9 MB, free: 2.121 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.0003409/0.006437, allocations: 365.7 kB / 297.3 MB, free: 1.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.006467, allocations: 8.031 kB / 297.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.006501, allocations: 0.9375 kB / 297.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.794e-05/0.006559, allocations: 105.8 kB / 297.4 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.006568, allocations: 384 / 297.4 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-06/0.006577, allocations: 4.359 kB / 297.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.52e-05/0.006643, allocations: 63.91 kB / 297.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-06/0.006649, allocations: 192 / 297.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-06/0.006654, allocations: 384 / 297.4 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.00666, allocations: 3.938 kB / 297.4 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.567e-05/0.006676, allocations: 33.7 kB / 297.5 MB, free: 1.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.668e-05/0.006732, allocations: 56.98 kB / 297.5 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.742e-05/0.00677, allocations: 48.3 kB / 297.6 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.413e-05/0.006784, allocations: 30.56 kB / 297.6 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-06/0.006787, allocations: 0 / 297.6 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.006827, allocations: 60.33 kB / 297.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.006828, allocations: 3.938 kB / 297.7 MB, free: 1.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001208/0.006949, allocations: 114.8 kB / 297.8 MB, free: 1.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.007002, allocations: 158.2 kB / 297.9 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.157e-05/0.007034, allocations: 93.92 kB / 298 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.007044, allocations: 29.7 kB / 298.1 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.916e-05/0.007063, allocations: 80.14 kB / 298.1 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.007084, allocations: 4 kB / 298.1 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.007107, allocations: 13.7 kB / 298.2 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.007184, allocations: 322.8 kB / 298.5 MB, free: 340 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.663e-05/0.007201, allocations: 25.7 kB / 298.5 MB, free: 308 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.292e-05/0.007213, allocations: 25.7 kB / 298.5 MB, free: 276 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.423e-05/0.007258, allocations: 64.2 kB / 298.6 MB, free: 196 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.00726, allocations: 0 / 298.6 MB, free: 196 kB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.056e-05/0.00731, allocations: 93.16 kB / 298.7 MB, free: 84 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.007345, allocations: 29.7 kB / 298.7 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.00735, allocations: 0 / 298.7 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.007364, allocations: 7.984 kB / 298.7 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.007365, allocations: 0 / 298.7 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.007368, allocations: 0 / 298.7 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.007386, allocations: 0.6875 kB / 298.7 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.007394, allocations: 3.938 kB / 298.7 MB, free: 36 kB / 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 8.459e-05/0.007479, allocations: 143.5 kB / 298.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.739e-06/0.007483, allocations: 0 / 298.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-06/0.007491, allocations: 7.031 kB / 298.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.007493, allocations: 0 / 298.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.007495, allocations: 4 kB / 298.9 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.007498, allocations: 0 / 298.9 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.719e-05/0.007545, allocations: 69.78 kB / 298.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.007546, allocations: 0 / 298.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.007546, allocations: 0 / 298.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-06/0.007551, allocations: 4 kB / 298.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.52e-07/0.007551, allocations: 0 / 298.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.007556, allocations: 3.984 kB / 298.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.007557, allocations: 0 / 298.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.007558, allocations: 4 kB / 298.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.665e-05/0.007625, allocations: 116.5 kB / 299.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.007635, allocations: 0 / 299.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.328e-06/0.007639, allocations: 0 / 299.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-06/0.007647, allocations: 0 / 299.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.00765, allocations: 7.938 kB / 299.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.572e-06/0.007656, allocations: 4.859 kB / 299.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007656, allocations: 0 / 299.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.007928, allocations: 131.6 kB / 299.2 MB, free: 15.48 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.000572/0.0085, allocations: 345.9 kB / 299.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.937e-05/0.00859, allocations: 119.7 kB / 299.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.008593, allocations: 0 / 299.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.132e-05/0.008625, allocations: 90.06 kB / 299.7 MB, free: 14.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.657e-05/0.008681, allocations: 11.92 kB / 299.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001454/0.008827, allocations: 118.4 kB / 299.9 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.401e-05/0.008851, allocations: 51.36 kB / 299.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.162e-06/0.008857, allocations: 3.984 kB / 299.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.993e-05/0.008887, allocations: 55.31 kB / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.008887, allocations: 0 / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of Templates: time 0.005339/0.01423, allocations: 3.986 MB / 304 MB, free: 10.63 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0298311300575733]