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.001018/0.001018, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001221/0.001221, allocations: 169.5 kB / 25.61 MB, free: 8.895 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.9469/0.9469, allocations: 177.1 MB / 206.1 MB, free: 4.477 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.16/0.16, allocations: 34.25 MB / 296.9 MB, free: 14.03 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.193e-06/1.193e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.448e-05/1.567e-05, allocations: 4.609 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001155/0.00117, allocations: 0.497 MB / 379.8 MB, free: 22.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.003241, allocations: 1.961 MB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.003258, allocations: 4 kB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.003271, allocations: 0 / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.003277, allocations: 0 / 381.7 MB, free: 20.94 MB / 314.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.001118/0.004395, allocations: 0.514 MB / 382.3 MB, free: 20.42 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.976e-05/0.004434, allocations: 0 / 382.3 MB, free: 20.42 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.029e-05/0.004465, allocations: 8 kB / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.833e-05/0.004483, allocations: 0 / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.434e-05/0.004497, allocations: 0 / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.783e-06/0.004504, allocations: 0 / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007345/0.005239, allocations: 0.6431 MB / 382.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.005246, allocations: 7.984 kB / 382.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.069e-05/0.005257, allocations: 0 / 382.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.005743, allocations: 462.8 kB / 383.4 MB, free: 19.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005746, allocations: 4 kB / 383.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.005746, allocations: 0 / 383.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.665e-06/0.005749, allocations: 4 kB / 383.4 MB, free: 19.3 MB / 314.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.0002643/0.006013, allocations: 445.3 kB / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.006041, allocations: 8.031 kB / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.385e-05/0.006065, allocations: 0.9375 kB / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.863e-05/0.006104, allocations: 116.5 kB / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.006112, allocations: 384 / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.268e-06/0.006117, allocations: 384 / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.064e-05/0.006167, allocations: 59.97 kB / 384 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.006174, allocations: 192 / 384 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-06/0.006178, allocations: 384 / 384 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.006183, allocations: 7.938 kB / 384 MB, free: 18.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.11e-05/0.006195, allocations: 29.7 kB / 384 MB, free: 18.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.477e-05/0.006249, allocations: 89.27 kB / 384.1 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.676e-05/0.006286, allocations: 60.72 kB / 384.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.164e-05/0.006298, allocations: 33.39 kB / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-06/0.0063, allocations: 0 / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.00632, allocations: 63.16 kB / 384.3 MB, free: 18.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.51e-07/0.006321, allocations: 0 / 384.3 MB, free: 18.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.00011/0.006431, allocations: 118.8 kB / 384.4 MB, free: 18.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.898e-05/0.00645, allocations: 77.23 kB / 384.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.015e-05/0.00647, allocations: 150.2 kB / 384.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-06/0.006474, allocations: 25.7 kB / 384.6 MB, free: 17.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-06/0.006483, allocations: 126.9 kB / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.13e-05/0.006494, allocations: 4 kB / 384.8 MB, free: 17.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/0.006515, allocations: 15.38 kB / 384.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.58e-05/0.006551, allocations: 0.4922 MB / 385.3 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.006559, allocations: 29.69 kB / 385.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.006566, allocations: 25.7 kB / 385.3 MB, free: 17.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.713e-05/0.006594, allocations: 63.09 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.006595, allocations: 4.062 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.326e-05/0.006638, allocations: 89.11 kB / 385.5 MB, free: 16.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.006656, allocations: 33.69 kB / 385.5 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.00666, allocations: 4 kB / 385.5 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.006669, allocations: 7.922 kB / 385.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.00667, allocations: 3.938 kB / 385.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-06/0.006673, allocations: 3.984 kB / 385.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.177e-05/0.006684, allocations: 3.938 kB / 385.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.006688, allocations: 0 / 385.5 MB, free: 16.85 MB / 314.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 3.659e-05/0.006725, allocations: 182.3 kB / 385.7 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-06/0.006731, allocations: 4.344 kB / 385.7 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.202e-06/0.006738, allocations: 3 kB / 385.7 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.006739, allocations: 4 kB / 385.7 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.006741, allocations: 3.984 kB / 385.7 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.006743, allocations: 0 / 385.7 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.812e-05/0.006781, allocations: 93.2 kB / 385.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.006782, allocations: 0 / 385.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.006783, allocations: 0 / 385.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.006784, allocations: 4 kB / 385.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-06/0.006787, allocations: 0 / 385.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.006788, allocations: 8 kB / 385.8 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.006789, allocations: 0 / 385.8 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.614e-05/0.006845, allocations: 139.7 kB / 386 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-06/0.006849, allocations: 8 kB / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.067e-06/0.006858, allocations: 0 / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.833e-06/0.006865, allocations: 0 / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-06/0.006872, allocations: 0 / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-06/0.006873, allocations: 0 / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.102e-05/0.006884, allocations: 123.2 kB / 386.1 MB, free: 16.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006884, allocations: 0 / 386.1 MB, free: 16.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.007217, allocations: 131.6 kB / 386.2 MB, free: 16.08 MB / 314.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.0005724/0.00779, allocations: 341.7 kB / 386.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.312e-05/0.007853, allocations: 126.5 kB / 386.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.007854, allocations: 4 kB / 386.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.532e-05/0.007869, allocations: 84.8 kB / 386.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001094/0.007979, allocations: 7.938 kB / 386.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001065/0.008085, allocations: 112.4 kB / 386.9 MB, free: 15.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.542e-05/0.008101, allocations: 55.22 kB / 386.9 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.458e-06/0.008105, allocations: 0 / 386.9 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.008134, allocations: 74.2 kB / 387 MB, free: 15.18 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.008135, allocations: 0 / 387 MB, free: 15.18 MB / 314.7 MB Notification: Performance of Templates: time 0.005641/0.01378, allocations: 3.935 MB / 390.9 MB, free: 11.25 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.229392551817]