Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001284/0.001284, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.00153/0.00153, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.9709/0.9709, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2823/0.2823, allocations: 32.81 MB / 294.6 MB, free: 1.242 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.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 323.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.26e-05/2.441e-05, allocations: 2.312 kB / 323.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001219/0.001243, allocations: 0.5126 MB / 323.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.003481, allocations: 1.985 MB / 325.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.541e-05/0.003496, allocations: 0 / 325.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.003508, allocations: 4 kB / 325.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.003514, allocations: 0 / 325.7 MB, free: 7.184 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001061/0.004574, allocations: 0.5139 MB / 326.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.004617, allocations: 0 / 326.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.464e-05/0.004651, allocations: 4.609 kB / 326.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.947e-05/0.004681, allocations: 4 kB / 326.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.722e-05/0.004698, allocations: 0 / 326.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.004706, allocations: 4 kB / 326.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006574/0.005363, allocations: 0.6393 MB / 326.9 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.005371, allocations: 0 / 326.9 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.477e-05/0.005386, allocations: 4 kB / 326.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.005844, allocations: 470.8 kB / 327.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.005847, allocations: 0 / 327.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.005849, allocations: 0 / 327.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.005852, allocations: 0 / 327.3 MB, free: 5.551 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.0002953/0.006147, allocations: 313.7 kB / 327.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.006178, allocations: 8.031 kB / 327.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.195e-05/0.0062, allocations: 0.9375 kB / 327.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.17e-05/0.006251, allocations: 113.8 kB / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-06/0.006259, allocations: 384 / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-06/0.006265, allocations: 384 / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.686e-05/0.006322, allocations: 55.97 kB / 327.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.331e-06/0.006328, allocations: 4.188 kB / 327.8 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-06/0.006333, allocations: 384 / 327.8 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.006337, allocations: 3.938 kB / 327.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.808e-05/0.006355, allocations: 37.62 kB / 327.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.091e-05/0.006406, allocations: 57.05 kB / 327.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.622e-05/0.006442, allocations: 44.31 kB / 328 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.34e-05/0.006455, allocations: 30.56 kB / 328 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-06/0.006458, allocations: 0 / 328 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.006485, allocations: 60.33 kB / 328.1 MB, free: 4.711 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.51e-07/0.006486, allocations: 0 / 328.1 MB, free: 4.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.966e-05/0.006586, allocations: 126.7 kB / 328.2 MB, free: 4.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.006621, allocations: 81.11 kB / 328.3 MB, free: 4.465 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.113e-05/0.006652, allocations: 89.86 kB / 328.4 MB, free: 4.367 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.006662, allocations: 29.64 kB / 328.4 MB, free: 4.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.023e-05/0.006682, allocations: 80.14 kB / 328.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.006696, allocations: 1.203 kB / 328.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.006715, allocations: 13.72 kB / 328.5 MB, free: 4.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.323e-05/0.006789, allocations: 318.8 kB / 328.8 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.406e-05/0.006803, allocations: 25.7 kB / 328.8 MB, free: 3.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.135e-05/0.006814, allocations: 29.83 kB / 328.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.919e-05/0.006853, allocations: 64.33 kB / 328.9 MB, free: 3.766 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.006855, allocations: 0 / 328.9 MB, free: 3.766 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.93e-05/0.006904, allocations: 89.03 kB / 329 MB, free: 3.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.006931, allocations: 29.7 kB / 329 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.006935, allocations: 4 kB / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.006947, allocations: 0 / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.417e-06/0.006951, allocations: 0 / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/0.006954, allocations: 0 / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-06/0.006963, allocations: 3.938 kB / 329 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.006971, allocations: 11.97 kB / 329 MB, free: 3.605 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 6.747e-05/0.007038, allocations: 143.5 kB / 329.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-06/0.007043, allocations: 0 / 329.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.404e-06/0.00705, allocations: 7 kB / 329.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.007051, allocations: 0 / 329.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.007053, allocations: 0 / 329.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.007056, allocations: 0 / 329.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.274e-05/0.007098, allocations: 65.84 kB / 329.2 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.007099, allocations: 0 / 329.2 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.0071, allocations: 4 kB / 329.3 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.007101, allocations: 0 / 329.3 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-06/0.007105, allocations: 4 kB / 329.3 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.007106, allocations: 0 / 329.3 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.007107, allocations: 3.984 kB / 329.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.062e-05/0.007168, allocations: 112.4 kB / 329.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-06/0.007174, allocations: 8.328 kB / 329.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-06/0.007183, allocations: 0 / 329.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.188e-06/0.007187, allocations: 0 / 329.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-06/0.007195, allocations: 0 / 329.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.007199, allocations: 8 kB / 329.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.959e-06/0.007204, allocations: 8.797 kB / 329.4 MB, free: 3.184 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007204, allocations: 4.031 kB / 329.4 MB, free: 3.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002389/0.007443, allocations: 127.7 kB / 329.5 MB, free: 3.055 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.0005191/0.007962, allocations: 330.3 kB / 329.8 MB, free: 2.738 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.62e-05/0.008038, allocations: 123.6 kB / 330 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.00804, allocations: 0 / 330 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.812e-05/0.008068, allocations: 85.97 kB / 330 MB, free: 2.484 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.614e-05/0.008104, allocations: 3.938 kB / 330.1 MB, free: 2.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001235/0.008228, allocations: 117.4 kB / 330.2 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.421e-05/0.008252, allocations: 51.36 kB / 330.2 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.118e-06/0.008256, allocations: 0 / 330.2 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.008282, allocations: 51.38 kB / 330.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.008282, allocations: 4.125 kB / 330.3 MB, free: 2.207 MB / 298.7 MB Notification: Performance of Templates: time 0.004888/0.01317, allocations: 3.92 MB / 334.2 MB, free: 14.29 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.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.0797873470000923]