Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009585/0.0009585, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.0009254/0.0009254, allocations: 161 kB / 24.56 MB, free: 12 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.9592/0.9592, allocations: 177.1 MB / 205 MB, free: 5.617 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.2432/0.2432, allocations: 34.26 MB / 295.7 MB, free: 0.6797 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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.316e-05/1.441e-05, allocations: 2.312 kB / 378 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0009822/0.0009966, allocations: 0.497 MB / 378.5 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.002553, allocations: 1.615 MB / 380.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.129e-05/0.002564, allocations: 4 kB / 380.1 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.524e-05/0.002579, allocations: 0 / 380.1 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.228e-06/0.002583, allocations: 0 / 380.1 MB, free: 0.5117 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006917/0.003275, allocations: 287.1 kB / 380.4 MB, free: 236 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.872e-05/0.003314, allocations: 3.984 kB / 380.4 MB, free: 232 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.384e-05/0.003338, allocations: 8 kB / 380.4 MB, free: 224 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.034e-05/0.003358, allocations: 0 / 380.4 MB, free: 224 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.498e-05/0.003373, allocations: 7.984 kB / 380.4 MB, free: 216 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.32e-06/0.003378, allocations: 0 / 380.4 MB, free: 216 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004391/0.003817, allocations: 419 kB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.003824, allocations: 4 kB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.236e-05/0.003837, allocations: 0 / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.004125, allocations: 323.1 kB / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.004127, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004127, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.00413, allocations: 4 kB / 381.2 MB, free: 15.48 MB / 362.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.0002495/0.00438, allocations: 401.7 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.004407, allocations: 8.031 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.004434, allocations: 0.9375 kB / 381.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.584e-05/0.00449, allocations: 112.6 kB / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.004499, allocations: 384 / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-06/0.004506, allocations: 4.312 kB / 381.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.06e-05/0.004576, allocations: 59.95 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.004582, allocations: 192 / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-06/0.004588, allocations: 384 / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.004597, allocations: 3.938 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.748e-05/0.004614, allocations: 41.64 kB / 381.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.891e-05/0.004693, allocations: 104.6 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.024e-05/0.004733, allocations: 52.8 kB / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.004749, allocations: 33.39 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-06/0.004752, allocations: 0 / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.004783, allocations: 67.14 kB / 382 MB, free: 14.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.004784, allocations: 0 / 382 MB, free: 14.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001311/0.004915, allocations: 118.8 kB / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.004952, allocations: 85.03 kB / 382.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.714e-05/0.004989, allocations: 146.4 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.004996, allocations: 25.7 kB / 382.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.005023, allocations: 130.9 kB / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.005035, allocations: 352 / 382.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.005057, allocations: 19.38 kB / 382.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.005162, allocations: 496.1 kB / 383 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.005177, allocations: 25.7 kB / 383.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.136e-05/0.005189, allocations: 25.7 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.687e-05/0.005226, allocations: 67.08 kB / 383.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.005227, allocations: 0 / 383.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.288e-05/0.00528, allocations: 101.1 kB / 383.2 MB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.005298, allocations: 29.7 kB / 383.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.005302, allocations: 4 kB / 383.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.005311, allocations: 0 / 383.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.827e-06/0.005315, allocations: 0 / 383.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.005322, allocations: 7.922 kB / 383.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.526e-06/0.00533, allocations: 0 / 383.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.005334, allocations: 0 / 383.3 MB, free: 13.05 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 5.826e-05/0.005393, allocations: 182.3 kB / 383.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-06/0.005397, allocations: 32 / 383.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.823e-06/0.005404, allocations: 11 kB / 383.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.52e-07/0.005404, allocations: 0 / 383.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.005407, allocations: 3.938 kB / 383.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-06/0.00541, allocations: 3.938 kB / 383.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.744e-05/0.005457, allocations: 108.6 kB / 383.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.005459, allocations: 4 kB / 383.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.00546, allocations: 0 / 383.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.005461, allocations: 4 kB / 383.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.005466, allocations: 0 / 383.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.005467, allocations: 3.984 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.005468, allocations: 7.938 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.552e-05/0.005543, allocations: 131.8 kB / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-06/0.005547, allocations: 4 kB / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-06/0.005557, allocations: 0 / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.028e-06/0.005561, allocations: 0 / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.005575, allocations: 4 kB / 383.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.005577, allocations: 0 / 383.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.034e-05/0.005607, allocations: 127.1 kB / 383.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005607, allocations: 0 / 383.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.005815, allocations: 63.8 kB / 383.9 MB, free: 12.32 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.0003026/0.006117, allocations: 196.9 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.706e-05/0.006204, allocations: 134.4 kB / 384.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.006206, allocations: 0 / 384.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.58e-05/0.006232, allocations: 88.8 kB / 384.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.563e-05/0.006307, allocations: 0 / 384.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000139/0.006446, allocations: 113.6 kB / 384.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.526e-05/0.006472, allocations: 51.36 kB / 384.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.098e-06/0.006476, allocations: 4 kB / 384.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.069e-05/0.006486, allocations: 8.5 kB / 384.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006487, allocations: 128 / 384.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of Templates: time 0.002813/0.0093, allocations: 1.515 MB / 386 MB, free: 10.11 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.9948968747630715]