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.001517/0.001517, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001051/0.001051, allocations: 173.1 kB / 24.91 MB, free: 8.258 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.9377/0.9377, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2422/0.2422, allocations: 34.25 MB / 296.1 MB, free: 0.7266 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.843e-06/1.843e-06, allocations: 0 / 325.2 MB, free: 7.723 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.208e-05, allocations: 3.188 kB / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001467/0.001489, allocations: 0.5054 MB / 325.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.003729, allocations: 1.6 MB / 327.3 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.431e-05/0.003743, allocations: 0 / 327.3 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.003755, allocations: 0 / 327.3 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.003762, allocations: 0 / 327.3 MB, free: 5.59 MB / 298.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.0006942/0.004456, allocations: 295.1 kB / 327.6 MB, free: 5.301 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.966e-05/0.004495, allocations: 4 kB / 327.6 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.278e-05/0.004528, allocations: 11.91 kB / 327.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.386e-05/0.004552, allocations: 0 / 327.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.633e-05/0.004568, allocations: 4 kB / 327.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.004574, allocations: 0 / 327.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000406/0.00498, allocations: 403.1 kB / 328 MB, free: 4.887 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.004988, allocations: 4 kB / 328 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.032e-05/0.004999, allocations: 0 / 328 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.005295, allocations: 323.1 kB / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.005297, allocations: 0 / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.005298, allocations: 0 / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.905e-06/0.005301, allocations: 0 / 328.3 MB, free: 4.566 MB / 298.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.0002273/0.005528, allocations: 278 kB / 328.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.005557, allocations: 8.031 kB / 328.6 MB, free: 4.254 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.296e-05/0.00558, allocations: 4.938 kB / 328.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.829e-05/0.005628, allocations: 101.8 kB / 328.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.005636, allocations: 4.375 kB / 328.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.005643, allocations: 384 / 328.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.571e-05/0.005699, allocations: 63.89 kB / 328.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.005705, allocations: 4.188 kB / 328.8 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-06/0.00571, allocations: 384 / 328.8 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.005714, allocations: 3.938 kB / 328.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.424e-05/0.005728, allocations: 29.7 kB / 328.8 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.983e-05/0.005778, allocations: 53.05 kB / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.467e-05/0.005813, allocations: 44.31 kB / 328.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.381e-05/0.005826, allocations: 34.56 kB / 329 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-06/0.005831, allocations: 8.062 kB / 329 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.00586, allocations: 64.19 kB / 329 MB, free: 3.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.82e-07/0.00586, allocations: 0 / 329 MB, free: 3.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.273e-05/0.005953, allocations: 110.8 kB / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.005982, allocations: 77.11 kB / 329.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.796e-05/0.006009, allocations: 89.86 kB / 329.3 MB, free: 3.426 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.006023, allocations: 29.69 kB / 329.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.774e-05/0.00604, allocations: 84.12 kB / 329.4 MB, free: 3.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.006054, allocations: 5.312 kB / 329.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.006071, allocations: 13.84 kB / 329.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.613e-05/0.006137, allocations: 318.8 kB / 329.7 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.006149, allocations: 29.7 kB / 329.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.115e-05/0.00616, allocations: 29.64 kB / 329.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.485e-05/0.006195, allocations: 68.25 kB / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.006196, allocations: 0 / 329.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.032e-05/0.006237, allocations: 81.11 kB / 329.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.006259, allocations: 35.73 kB / 330 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.006263, allocations: 0 / 330 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.006274, allocations: 0 / 330 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.996e-06/0.006277, allocations: 4.094 kB / 330 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.00628, allocations: 0 / 330 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.598e-06/0.006289, allocations: 3.938 kB / 330 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.006297, allocations: 11.92 kB / 330 MB, free: 2.652 MB / 298.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.998e-05/0.006347, allocations: 131.5 kB / 330.1 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-06/0.006353, allocations: 7.938 kB / 330.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.692e-06/0.00636, allocations: 3 kB / 330.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.006361, allocations: 0 / 330.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.006362, allocations: 0 / 330.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.006364, allocations: 0 / 330.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.007e-05/0.006404, allocations: 69.84 kB / 330.2 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.006406, allocations: 3.984 kB / 330.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.006407, allocations: 3.984 kB / 330.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.01e-07/0.006408, allocations: 0 / 330.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-06/0.006411, allocations: 0 / 330.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.006411, allocations: 0 / 330.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.006411, allocations: 0 / 330.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.195e-05/0.006463, allocations: 120.5 kB / 330.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-06/0.006469, allocations: 4.328 kB / 330.3 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-06/0.006477, allocations: 0 / 330.3 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.1e-06/0.006482, allocations: 4 kB / 330.3 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.115e-06/0.00649, allocations: 8.031 kB / 330.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-06/0.006491, allocations: 0 / 330.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.581e-06/0.006497, allocations: 8.797 kB / 330.4 MB, free: 2.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006497, allocations: 0 / 330.4 MB, free: 2.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001546/0.006652, allocations: 63.8 kB / 330.4 MB, free: 2.168 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.0002936/0.006945, allocations: 182.9 kB / 330.6 MB, free: 2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.592e-05/0.007021, allocations: 115.7 kB / 330.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007023, allocations: 4 kB / 330.7 MB, free: 1.855 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.746e-05/0.00705, allocations: 85.97 kB / 330.8 MB, free: 1.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.81e-05/0.007088, allocations: 12.05 kB / 330.8 MB, free: 1.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001215/0.00721, allocations: 104.6 kB / 330.9 MB, free: 1.602 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.572e-05/0.007235, allocations: 55.3 kB / 331 MB, free: 1.527 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.789e-06/0.00724, allocations: 0 / 331 MB, free: 1.527 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.007271, allocations: 59.36 kB / 331 MB, free: 1.469 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.007272, allocations: 0 / 331 MB, free: 1.469 MB / 298.7 MB Notification: Performance of Templates: time 0.002977/0.01025, allocations: 1.501 MB / 332.5 MB, free: 15.97 MB / 314.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.7800656598992646]