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.001125/0.001125, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00153/0.002655, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007628/0.0007628, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009032/0.001666, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9574/0.9574, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08831/1.046, allocations: 53.64 MB / 243.3 MB, free: 15.58 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.2476/0.2476, allocations: 34.26 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02276/0.2704, allocations: 13.1 MB / 291.3 MB, free: 7.375 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.172e-06/1.172e-06, allocations: 0 / 292.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.049e-05, allocations: 6.312 kB / 292.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001139/0.00116, allocations: 0.5516 MB / 293.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.003222, allocations: 1.985 MB / 295.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.435e-05/0.003236, allocations: 0 / 295.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.31e-06/0.003241, allocations: 7.875 kB / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.002e-06/0.003242, allocations: 0 / 295.2 MB, free: 3.738 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.001102/0.004344, allocations: 454.4 kB / 295.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.943e-05/0.004414, allocations: 8.5 kB / 295.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.004454, allocations: 3.984 kB / 295.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.35e-05/0.004487, allocations: 0 / 295.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.464e-05/0.004512, allocations: 4 kB / 295.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-06/0.00452, allocations: 0 / 295.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009301/0.00545, allocations: 0.69 MB / 296.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.005458, allocations: 0 / 296.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.322e-05/0.005472, allocations: 4 kB / 296.3 MB, free: 2.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.005969, allocations: 367 kB / 296.7 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.239e-05/0.005981, allocations: 4 kB / 296.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005982, allocations: 0 / 296.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.005996, allocations: 0 / 296.7 MB, free: 2.219 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.0003841/0.00638, allocations: 361.7 kB / 297 MB, free: 1.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.804e-05/0.006408, allocations: 8.031 kB / 297 MB, free: 1.828 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.006438, allocations: 4.938 kB / 297.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.552e-05/0.006494, allocations: 113.8 kB / 297.2 MB, free: 1.688 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.006505, allocations: 4.359 kB / 297.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-06/0.006513, allocations: 4.375 kB / 297.2 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.323e-05/0.006576, allocations: 55.91 kB / 297.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.006582, allocations: 192 / 297.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-06/0.006587, allocations: 384 / 297.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.006594, allocations: 7.938 kB / 297.2 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.918e-05/0.006613, allocations: 25.7 kB / 297.3 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.239e-05/0.006675, allocations: 64.97 kB / 297.3 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.973e-05/0.006715, allocations: 44.28 kB / 297.4 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.00673, allocations: 34.66 kB / 297.4 MB, free: 1.395 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-06/0.006733, allocations: 3.938 kB / 297.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.006767, allocations: 60.27 kB / 297.5 MB, free: 1.316 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.006768, allocations: 0 / 297.5 MB, free: 1.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001108/0.006879, allocations: 114.8 kB / 297.6 MB, free: 1.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.006914, allocations: 77.11 kB / 297.6 MB, free: 1.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.101e-05/0.006945, allocations: 93.86 kB / 297.7 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.585e-06/0.006953, allocations: 25.7 kB / 297.8 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.79e-05/0.006971, allocations: 80.14 kB / 297.8 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.006984, allocations: 4.125 kB / 297.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.007009, allocations: 13.72 kB / 297.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.00708, allocations: 318.8 kB / 298.2 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.007093, allocations: 25.7 kB / 298.2 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.262e-05/0.007106, allocations: 33.64 kB / 298.2 MB, free: 468 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.838e-05/0.007144, allocations: 64.27 kB / 298.3 MB, free: 388 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.007147, allocations: 0 / 298.3 MB, free: 388 kB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.012e-05/0.007197, allocations: 85.09 kB / 298.4 MB, free: 284 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.007229, allocations: 33.7 kB / 298.4 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.007234, allocations: 96 / 298.4 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.007241, allocations: 4 kB / 298.4 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.809e-06/0.007246, allocations: 0 / 298.4 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-06/0.007248, allocations: 0 / 298.4 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.007265, allocations: 8.625 kB / 298.4 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.007273, allocations: 7.938 kB / 298.4 MB, free: 224 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 5.483e-05/0.007328, allocations: 143.5 kB / 298.6 MB, free: 64 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-06/0.007334, allocations: 4 kB / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.446e-06/0.007342, allocations: 3 kB / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.007343, allocations: 0 / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.007345, allocations: 0 / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.007347, allocations: 4 kB / 298.6 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.494e-05/0.007402, allocations: 65.84 kB / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.007403, allocations: 0 / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-07/0.007403, allocations: 0 / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-06/0.007407, allocations: 0 / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.007408, allocations: 0 / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-06/0.007413, allocations: 3.984 kB / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.007414, allocations: 0 / 298.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.007415, allocations: 4 kB / 298.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.505e-05/0.00748, allocations: 112.5 kB / 298.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.007491, allocations: 8.031 kB / 298.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.333e-06/0.007498, allocations: 4 kB / 298.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-06/0.007507, allocations: 3.938 kB / 298.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.007509, allocations: 0 / 298.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.014e-06/0.007516, allocations: 4.859 kB / 298.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007516, allocations: 0 / 298.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002919/0.007808, allocations: 127.6 kB / 298.9 MB, free: 15.68 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.0005594/0.008367, allocations: 346.7 kB / 299.2 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.084e-05/0.008458, allocations: 115.7 kB / 299.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.008462, allocations: 4 kB / 299.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/0.008491, allocations: 81.97 kB / 299.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.309e-05/0.008544, allocations: 12.06 kB / 299.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001705/0.008715, allocations: 121.5 kB / 299.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.967e-05/0.008745, allocations: 51.36 kB / 299.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.201e-06/0.008751, allocations: 0 / 299.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.935e-05/0.00878, allocations: 55.36 kB / 299.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.008781, allocations: 3.938 kB / 299.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of Templates: time 0.005351/0.01413, allocations: 3.914 MB / 303.6 MB, free: 10.9 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9845844823867083]