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.001125/0.001125, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001296/0.001296, allocations: 163.9 kB / 25.61 MB, free: 8.582 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.9715/0.9715, 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.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.1424/0.1424, allocations: 32.8 MB / 295.4 MB, free: 15.38 MB / 282.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.663e-06/1.663e-06, allocations: 0 / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.31e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001317/0.00134, allocations: 0.5036 MB / 377.7 MB, free: 25.11 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003406/0.004746, allocations: 1.584 MB / 379.3 MB, free: 23.51 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.249e-05/0.004769, allocations: 0 / 379.3 MB, free: 23.51 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.004787, allocations: 4 kB / 379.3 MB, free: 23.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.344e-06/0.004794, allocations: 0 / 379.3 MB, free: 23.5 MB / 314.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.0008058/0.0056, allocations: 295.1 kB / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.648e-05/0.005647, allocations: 0 / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.388e-05/0.005681, allocations: 4 kB / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.475e-05/0.005705, allocations: 4 kB / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.837e-05/0.005724, allocations: 0 / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.583e-06/0.00573, allocations: 3.938 kB / 379.6 MB, free: 23.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004414/0.006172, allocations: 427 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-06/0.006178, allocations: 4 kB / 380.1 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.181e-05/0.00619, allocations: 4 kB / 380.1 MB, free: 22.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.006468, allocations: 311.2 kB / 380.4 MB, free: 22.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.00647, allocations: 4 kB / 380.4 MB, free: 22.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006471, allocations: 0 / 380.4 MB, free: 22.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.006477, allocations: 0 / 380.4 MB, free: 22.47 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.0002525/0.006729, allocations: 405.6 kB / 380.8 MB, free: 22.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.00676, allocations: 11.98 kB / 380.8 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.006785, allocations: 4.922 kB / 380.8 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.195e-05/0.006827, allocations: 116.6 kB / 380.9 MB, free: 21.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.006837, allocations: 384 / 380.9 MB, free: 21.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-06/0.006842, allocations: 4.375 kB / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.717e-05/0.006899, allocations: 55.97 kB / 380.9 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.006906, allocations: 192 / 380.9 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-06/0.006911, allocations: 384 / 381 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.006916, allocations: 3.938 kB / 381 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.048e-05/0.006927, allocations: 29.64 kB / 381 MB, free: 21.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.5e-05/0.006982, allocations: 97.25 kB / 381.1 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.13e-05/0.007013, allocations: 52.86 kB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.578e-06/0.007023, allocations: 37.39 kB / 381.2 MB, free: 21.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-06/0.007026, allocations: 4 kB / 381.2 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.007046, allocations: 59.09 kB / 381.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.007047, allocations: 0 / 381.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000117/0.007164, allocations: 122.7 kB / 381.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.204e-05/0.007186, allocations: 77.11 kB / 381.4 MB, free: 21.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.036e-05/0.007206, allocations: 142.2 kB / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-06/0.007211, allocations: 25.7 kB / 381.6 MB, free: 21.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.102e-05/0.007222, allocations: 126.9 kB / 381.7 MB, free: 20.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.007236, allocations: 0 / 381.7 MB, free: 20.9 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.007256, allocations: 23.38 kB / 381.7 MB, free: 20.87 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.789e-05/0.007304, allocations: 0.4884 MB / 382.2 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.007317, allocations: 33.7 kB / 382.3 MB, free: 20.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-06/0.007325, allocations: 25.7 kB / 382.3 MB, free: 20.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.481e-05/0.00736, allocations: 63.09 kB / 382.3 MB, free: 20.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.007362, allocations: 3.938 kB / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.667e-05/0.007409, allocations: 89.09 kB / 382.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.007431, allocations: 29.7 kB / 382.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.007446, allocations: 4 kB / 382.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.007456, allocations: 0 / 382.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.007457, allocations: 0 / 382.5 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.007459, allocations: 8.031 kB / 382.5 MB, free: 20.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.269e-05/0.007472, allocations: 7.938 kB / 382.5 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.007479, allocations: 0 / 382.5 MB, free: 20.05 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 4.648e-05/0.007525, allocations: 190.3 kB / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-06/0.007531, allocations: 352 / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.246e-06/0.007539, allocations: 6.984 kB / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.007541, allocations: 0 / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.007542, allocations: 0 / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.007545, allocations: 0 / 382.7 MB, free: 19.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.736e-05/0.007582, allocations: 97.2 kB / 382.8 MB, free: 19.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.007583, allocations: 4 kB / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.007583, allocations: 0 / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.007584, allocations: 0 / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-06/0.007587, allocations: 0 / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.007588, allocations: 3.938 kB / 382.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007589, allocations: 4 kB / 382.8 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.245e-05/0.007651, allocations: 131.7 kB / 382.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-06/0.007656, allocations: 4 kB / 382.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-06/0.007665, allocations: 0 / 382.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.33e-06/0.00767, allocations: 4 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.013e-05/0.00768, allocations: 4.016 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.007682, allocations: 4 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.396e-05/0.007696, allocations: 119.2 kB / 383 MB, free: 19.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007696, allocations: 0 / 383 MB, free: 19.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002175/0.007914, allocations: 63.75 kB / 383.1 MB, free: 19.36 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.0003305/0.008244, allocations: 195.3 kB / 383.3 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.034e-05/0.008324, allocations: 122.4 kB / 383.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.008327, allocations: 0 / 383.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.008343, allocations: 92.78 kB / 383.5 MB, free: 18.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.016e-05/0.008433, allocations: 7.938 kB / 383.5 MB, free: 18.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001275/0.008561, allocations: 111.7 kB / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.692e-05/0.008577, allocations: 55.22 kB / 383.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.683e-06/0.008584, allocations: 3.984 kB / 383.7 MB, free: 18.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.008614, allocations: 74.19 kB / 383.8 MB, free: 18.6 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.008614, allocations: 0 / 383.8 MB, free: 18.6 MB / 314.7 MB Notification: Performance of Templates: time 0.002839/0.01145, allocations: 1.523 MB / 385.3 MB, free: 17.08 MB / 314.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.0002633412368596]