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.0009594/0.0009594, 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.001323/0.001323, allocations: 168.7 kB / 24.91 MB, free: 9.191 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.9583/0.9583, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.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.2409/0.2409, allocations: 34.27 MB / 296.1 MB, free: 0.7305 MB / 266.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.213e-06/1.213e-06, allocations: 0 / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.18e-05, allocations: 2.312 kB / 325.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001275/0.001297, allocations: 0.5136 MB / 325.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.003475, allocations: 1.985 MB / 327.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.564e-05/0.003491, allocations: 4 kB / 327.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.003505, allocations: 0 / 327.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.655e-06/0.003513, allocations: 0 / 327.7 MB, free: 5.188 MB / 298.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.001027/0.004539, allocations: 0.5106 MB / 328.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.861e-05/0.004578, allocations: 3.984 kB / 328.2 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.038e-05/0.004608, allocations: 0 / 328.2 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.499e-05/0.004633, allocations: 4 kB / 328.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.591e-05/0.004649, allocations: 0 / 328.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-06/0.004655, allocations: 0 / 328.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000627/0.005282, allocations: 0.6432 MB / 328.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.005293, allocations: 0 / 328.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.005308, allocations: 4.5 kB / 328.9 MB, free: 4.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.005731, allocations: 470.7 kB / 329.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005733, allocations: 0 / 329.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.005734, allocations: 0 / 329.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.005738, allocations: 4 kB / 329.4 MB, free: 3.555 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.0002903/0.006028, allocations: 317.7 kB / 329.7 MB, free: 3.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.00606, allocations: 8.031 kB / 329.7 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.006085, allocations: 0.9375 kB / 329.7 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.54e-05/0.006141, allocations: 105.8 kB / 329.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.00615, allocations: 384 / 329.8 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.816e-06/0.006159, allocations: 4.312 kB / 329.8 MB, free: 3.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.454e-05/0.006223, allocations: 59.95 kB / 329.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-06/0.006229, allocations: 192 / 329.9 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-06/0.006234, allocations: 384 / 329.9 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.00624, allocations: 7.938 kB / 329.9 MB, free: 2.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.512e-05/0.006256, allocations: 29.7 kB / 329.9 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.143e-05/0.006317, allocations: 53.05 kB / 329.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.901e-05/0.006356, allocations: 44.31 kB / 330 MB, free: 2.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.032e-05/0.006376, allocations: 38.48 kB / 330 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-06/0.006379, allocations: 0 / 330 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.00641, allocations: 60.33 kB / 330.1 MB, free: 2.715 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.006411, allocations: 0 / 330.1 MB, free: 2.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001031/0.006514, allocations: 110.8 kB / 330.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.00655, allocations: 85.22 kB / 330.3 MB, free: 2.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.443e-05/0.006585, allocations: 93.86 kB / 330.4 MB, free: 2.379 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.006595, allocations: 25.7 kB / 330.4 MB, free: 2.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.262e-05/0.006617, allocations: 80.14 kB / 330.5 MB, free: 2.266 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.006635, allocations: 1.375 kB / 330.5 MB, free: 2.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.006654, allocations: 13.72 kB / 330.5 MB, free: 2.246 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.107e-05/0.006745, allocations: 318.8 kB / 330.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.408e-05/0.006759, allocations: 29.64 kB / 330.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.617e-05/0.006775, allocations: 29.7 kB / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.189e-05/0.006817, allocations: 64.25 kB / 330.9 MB, free: 1.777 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.006818, allocations: 4.062 kB / 330.9 MB, free: 1.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.985e-05/0.006868, allocations: 81.11 kB / 331 MB, free: 1.676 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.006898, allocations: 36.05 kB / 331 MB, free: 1.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.006903, allocations: 0 / 331 MB, free: 1.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.006914, allocations: 11.97 kB / 331 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-06/0.006918, allocations: 3.938 kB / 331 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.00692, allocations: 0 / 331 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.352e-05/0.006934, allocations: 3.938 kB / 331 MB, free: 1.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.00694, allocations: 3.938 kB / 331.1 MB, free: 1.613 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.786e-05/0.006998, allocations: 139.5 kB / 331.2 MB, free: 1.461 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-06/0.007002, allocations: 4 kB / 331.2 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-06/0.007009, allocations: 3 kB / 331.2 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.007011, allocations: 4 kB / 331.2 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.007012, allocations: 0 / 331.2 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.007015, allocations: 0 / 331.2 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.396e-05/0.007059, allocations: 69.83 kB / 331.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.007059, allocations: 0 / 331.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.007059, allocations: 0 / 331.3 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.007061, allocations: 4 kB / 331.3 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-06/0.007066, allocations: 4 kB / 331.3 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.007066, allocations: 4 kB / 331.3 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.007067, allocations: 0 / 331.3 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.736e-05/0.007134, allocations: 112.5 kB / 331.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-06/0.007138, allocations: 4.344 kB / 331.4 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.067e-06/0.007147, allocations: 0 / 331.4 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-06/0.007151, allocations: 0 / 331.4 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-06/0.007159, allocations: 3.938 kB / 331.4 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-06/0.00716, allocations: 0 / 331.4 MB, free: 1.203 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.705e-06/0.007168, allocations: 12.86 kB / 331.4 MB, free: 1.188 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007168, allocations: 0 / 331.4 MB, free: 1.188 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002157/0.007384, allocations: 123.7 kB / 331.5 MB, free: 1.066 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.0005716/0.007955, allocations: 341.2 kB / 331.9 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.976e-05/0.008045, allocations: 119.7 kB / 332 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.008047, allocations: 0 / 332 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.977e-05/0.008077, allocations: 89.95 kB / 332.1 MB, free: 500 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.894e-05/0.008126, allocations: 3.938 kB / 332.1 MB, free: 496 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001326/0.008258, allocations: 109.9 kB / 332.2 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.591e-05/0.008284, allocations: 55.36 kB / 332.2 MB, free: 276 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.011e-06/0.00829, allocations: 7.922 kB / 332.2 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.008316, allocations: 51.38 kB / 332.3 MB, free: 216 kB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.008317, allocations: 0 / 332.3 MB, free: 216 kB / 298.7 MB Notification: Performance of Templates: time 0.008236/0.01655, allocations: 3.919 MB / 336.2 MB, free: 12.3 MB / 314.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.006485576275736]