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.001587/0.001587, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001037/0.001037, allocations: 174.8 kB / 24.91 MB, free: 8.734 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.9666/0.9666, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.241/0.241, allocations: 32.81 MB / 294.6 MB, free: 1.238 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 3.336e-06/3.336e-06, allocations: 4 kB / 323.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.634e-05, allocations: 3.891 kB / 323.2 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001175/0.001201, allocations: 0.5546 MB / 323.8 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.002878, allocations: 1.596 MB / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.556e-05/0.002894, allocations: 0 / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.319e-05/0.002907, allocations: 0 / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.002913, allocations: 4 kB / 325.4 MB, free: 7.5 MB / 298.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.000721/0.003634, allocations: 299.6 kB / 325.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.082e-05/0.003675, allocations: 0 / 325.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.526e-05/0.003711, allocations: 0 / 325.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.393e-05/0.003744, allocations: 4 kB / 325.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.247e-05/0.003767, allocations: 0 / 325.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.977e-06/0.003776, allocations: 0 / 325.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004697/0.004246, allocations: 415 kB / 326.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-06/0.004252, allocations: 4 kB / 326.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.165e-05/0.004263, allocations: 0.625 kB / 326.1 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.00456, allocations: 323.1 kB / 326.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.004561, allocations: 0 / 326.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.004562, allocations: 0 / 326.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.916e-06/0.004565, allocations: 0 / 326.4 MB, free: 6.477 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.0002021/0.004767, allocations: 266.1 kB / 326.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.797e-05/0.004795, allocations: 12.03 kB / 326.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.03e-05/0.004815, allocations: 0.9375 kB / 326.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.974e-05/0.004865, allocations: 109.7 kB / 326.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.004873, allocations: 8.375 kB / 326.8 MB, free: 6.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-06/0.004879, allocations: 4.375 kB / 326.8 MB, free: 6.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.372e-05/0.004933, allocations: 55.97 kB / 326.9 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.32e-06/0.004938, allocations: 192 / 326.9 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-06/0.004943, allocations: 384 / 326.9 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.004948, allocations: 3.938 kB / 326.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.387e-05/0.004962, allocations: 29.7 kB / 326.9 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.236e-05/0.005014, allocations: 61.03 kB / 327 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.529e-05/0.005049, allocations: 48.2 kB / 327 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.29e-05/0.005062, allocations: 34.66 kB / 327 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-06/0.005065, allocations: 4 kB / 327 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.005094, allocations: 60.2 kB / 327.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.005095, allocations: 4 kB / 327.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.775e-05/0.005182, allocations: 110.8 kB / 327.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.005209, allocations: 77.11 kB / 327.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.692e-05/0.005235, allocations: 89.86 kB / 327.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.00525, allocations: 37.64 kB / 327.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.936e-05/0.005269, allocations: 80.14 kB / 327.5 MB, free: 5.215 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.005283, allocations: 5.141 kB / 327.5 MB, free: 5.211 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.005302, allocations: 9.719 kB / 327.5 MB, free: 5.195 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.132e-05/0.005373, allocations: 322.9 kB / 327.8 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.005386, allocations: 25.7 kB / 327.8 MB, free: 4.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.182e-05/0.005398, allocations: 29.69 kB / 327.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.511e-05/0.005433, allocations: 60.27 kB / 327.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.005434, allocations: 0 / 327.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.466e-05/0.005479, allocations: 85.11 kB / 328 MB, free: 4.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.005502, allocations: 33.69 kB / 328.1 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.005507, allocations: 0 / 328.1 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.777e-06/0.005515, allocations: 0 / 328.1 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.005517, allocations: 8.031 kB / 328.1 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-06/0.005519, allocations: 4 kB / 328.1 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.237e-06/0.005528, allocations: 0 / 328.1 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.005534, allocations: 3.938 kB / 328.1 MB, free: 4.574 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 5.182e-05/0.005586, allocations: 135.5 kB / 328.2 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-06/0.00559, allocations: 0 / 328.2 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.548e-06/0.005599, allocations: 7 kB / 328.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.005602, allocations: 3.984 kB / 328.2 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.005603, allocations: 0 / 328.2 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.005606, allocations: 0 / 328.2 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.005789, allocations: 69.83 kB / 328.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.005789, allocations: 4 kB / 328.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-07/0.00579, allocations: 0 / 328.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-07/0.00579, allocations: 0 / 328.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-06/0.005793, allocations: 0 / 328.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.005794, allocations: 4 kB / 328.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.005795, allocations: 0 / 328.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.321e-05/0.005848, allocations: 116.4 kB / 328.4 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-06/0.005852, allocations: 8.281 kB / 328.4 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.005862, allocations: 8 kB / 328.4 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.927e-06/0.005866, allocations: 0 / 328.4 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-06/0.005874, allocations: 8.016 kB / 328.4 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.005877, allocations: 3.984 kB / 328.4 MB, free: 4.152 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.019e-06/0.005882, allocations: 4.859 kB / 328.4 MB, free: 4.145 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005882, allocations: 0 / 328.4 MB, free: 4.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001746/0.006056, allocations: 59.81 kB / 328.5 MB, free: 4.086 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.0003013/0.006358, allocations: 183.7 kB / 328.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.941e-05/0.006437, allocations: 119.7 kB / 328.8 MB, free: 3.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.00644, allocations: 0 / 328.8 MB, free: 3.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.454e-05/0.006464, allocations: 85.97 kB / 328.9 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.556e-05/0.00651, allocations: 8.062 kB / 328.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001275/0.006637, allocations: 117.3 kB / 329 MB, free: 3.508 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.617e-05/0.006663, allocations: 55.34 kB / 329 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.006669, allocations: 0 / 329 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.146e-05/0.0067, allocations: 55.36 kB / 329.1 MB, free: 3.379 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.006701, allocations: 0 / 329.1 MB, free: 3.379 MB / 298.7 MB Notification: Performance of Templates: time 0.002642/0.009343, allocations: 1.495 MB / 330.6 MB, free: 1.891 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.828192621935159]