Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.001056/0.001056, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001213/0.001213, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9604/0.9604, allocations: 177.2 MB / 205 MB, free: 5.289 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.2446/0.2446, allocations: 32.81 MB / 294.3 MB, free: 1.18 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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.719e-05, allocations: 9.484 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001161/0.001188, allocations: 0.4969 MB / 376.5 MB, free: 4.176 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.002932, allocations: 1.6 MB / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.764e-05/0.002949, allocations: 0 / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.002968, allocations: 0 / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.002974, allocations: 3.938 kB / 378.1 MB, free: 2.551 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008981/0.003872, allocations: 295.1 kB / 378.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.412e-05/0.003916, allocations: 0 / 378.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.003951, allocations: 8 kB / 378.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.51e-05/0.003977, allocations: 3.938 kB / 378.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.844e-05/0.003995, allocations: 3.984 kB / 378.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.004003, allocations: 0 / 378.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005014/0.004504, allocations: 419.1 kB / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.808e-06/0.004514, allocations: 7.875 kB / 378.8 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.004533, allocations: 4 kB / 378.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000467/0.005, allocations: 315.2 kB / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.005003, allocations: 0 / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005004, allocations: 0 / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.005008, allocations: 0 / 379.1 MB, free: 1.516 MB / 346.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.0002963/0.005304, allocations: 405.7 kB / 379.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.005339, allocations: 11.97 kB / 379.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.005373, allocations: 4.938 kB / 379.5 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.18e-05/0.005425, allocations: 112.6 kB / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.005435, allocations: 4.375 kB / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.005444, allocations: 384 / 379.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.308e-05/0.005527, allocations: 55.97 kB / 379.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.005535, allocations: 192 / 379.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-06/0.005542, allocations: 384 / 379.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.005549, allocations: 3.938 kB / 379.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.966e-05/0.005569, allocations: 37.69 kB / 379.8 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.274e-05/0.005651, allocations: 104.6 kB / 379.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.348e-05/0.005695, allocations: 56.73 kB / 379.9 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.22e-05/0.005717, allocations: 33.39 kB / 379.9 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.851e-06/0.005723, allocations: 4 kB / 380 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.005767, allocations: 63.16 kB / 380 MB, free: 484 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.005768, allocations: 0 / 380 MB, free: 484 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001763/0.005944, allocations: 118.8 kB / 380.1 MB, free: 340 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.00599, allocations: 84.98 kB / 380.2 MB, free: 236 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.455e-05/0.006035, allocations: 142.2 kB / 380.4 MB, free: 80 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.006045, allocations: 25.7 kB / 380.4 MB, free: 48 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.006087, allocations: 126.9 kB / 380.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.006104, allocations: 4.344 kB / 380.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.006132, allocations: 23.48 kB / 380.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.006249, allocations: 496.1 kB / 381 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.558e-05/0.006275, allocations: 29.7 kB / 381 MB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.006289, allocations: 25.7 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.776e-05/0.006337, allocations: 63.09 kB / 381.1 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.006339, allocations: 0 / 381.1 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.868e-05/0.006417, allocations: 101 kB / 381.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.006449, allocations: 33.64 kB / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.006455, allocations: 0 / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.006472, allocations: 4 kB / 381.3 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.859e-06/0.006477, allocations: 8.078 kB / 381.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.006486, allocations: 3.938 kB / 381.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.006499, allocations: 0 / 381.3 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.006506, allocations: 0 / 381.3 MB, free: 15.07 MB / 362.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 7.607e-05/0.006582, allocations: 186.3 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-06/0.006587, allocations: 0 / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.0066, allocations: 3 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.006604, allocations: 4 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.006608, allocations: 0 / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.006613, allocations: 3.938 kB / 381.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.273e-05/0.006676, allocations: 108.6 kB / 381.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.006677, allocations: 0 / 381.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.006678, allocations: 0 / 381.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.006682, allocations: 4 kB / 381.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.006689, allocations: 4 kB / 381.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.006692, allocations: 3.984 kB / 381.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.006693, allocations: 0 / 381.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.006813, allocations: 131.7 kB / 381.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-06/0.006819, allocations: 3.984 kB / 381.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.006834, allocations: 4 kB / 381.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.995e-06/0.006842, allocations: 4.031 kB / 381.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.185e-05/0.006864, allocations: 4 kB / 381.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.006868, allocations: 0 / 381.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.401e-05/0.006902, allocations: 123.1 kB / 381.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006902, allocations: 4 kB / 381.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003072/0.007209, allocations: 59.8 kB / 381.9 MB, free: 14.35 MB / 362.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.000425/0.007634, allocations: 190 kB / 382.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.00775, allocations: 126.4 kB / 382.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.007752, allocations: 0 / 382.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.00779, allocations: 96.72 kB / 382.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.007916, allocations: 8.062 kB / 382.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004778/0.008394, allocations: 109.7 kB / 382.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.489e-05/0.008429, allocations: 55.34 kB / 382.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.074e-06/0.008436, allocations: 0 / 382.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.846e-05/0.008455, allocations: 12.5 kB / 382.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.008456, allocations: 0 / 382.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of Templates: time 0.003508/0.01196, allocations: 1.335 MB / 383.8 MB, free: 12.32 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.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.1668741549365222]