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.000866/0.000866, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003861/0.003861, allocations: 165.1 kB / 24.7 MB, free: 9.426 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.8665/0.8665, allocations: 177.2 MB / 205 MB, free: 5.723 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.2384/0.2384, allocations: 34.25 MB / 295.7 MB, free: 0.6953 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.523e-06/1.523e-06, allocations: 0 / 443.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.524e-05, allocations: 2.281 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0009682/0.0009934, allocations: 0.4892 MB / 443.9 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1693/0.1703, allocations: 1.553 MB / 445.5 MB, free: 43.6 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.438e-05/0.1703, allocations: 0 / 445.5 MB, free: 43.6 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.1703, allocations: 3.938 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.1703, allocations: 0 / 445.5 MB, free: 43.59 MB / 410.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.000646/0.171, allocations: 291 kB / 445.7 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.44e-05/0.171, allocations: 0 / 445.7 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.527e-05/0.1711, allocations: 2.781 kB / 445.7 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.879e-05/0.1711, allocations: 2.656 kB / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.803e-05/0.1711, allocations: 4.641 kB / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-06/0.1711, allocations: 0 / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.1715, allocations: 427.5 kB / 446.2 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.1715, allocations: 0 / 446.2 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.565e-05/0.1715, allocations: 0.7188 kB / 446.2 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1717, allocations: 319.2 kB / 446.5 MB, free: 43.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1717, allocations: 4.188 kB / 446.5 MB, free: 43.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1717, allocations: 0 / 446.5 MB, free: 43.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1717, allocations: 0 / 446.5 MB, free: 43.46 MB / 410.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.0002137/0.172, allocations: 300.4 kB / 446.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.172, allocations: 12.31 kB / 446.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.172, allocations: 4.078 kB / 446.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.044e-05/0.1721, allocations: 104.3 kB / 446.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.1721, allocations: 384 / 446.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.144e-06/0.1721, allocations: 384 / 446.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.911e-05/0.1722, allocations: 62.62 kB / 447 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1722, allocations: 6.531 kB / 447 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.1722, allocations: 384 / 447 MB, free: 42.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1722, allocations: 3.938 kB / 447 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.644e-05/0.1722, allocations: 30.78 kB / 447 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.432e-05/0.1723, allocations: 96.05 kB / 447.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.145e-05/0.1723, allocations: 43.34 kB / 447.1 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.358e-05/0.1723, allocations: 32.45 kB / 447.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.1723, allocations: 7.344 kB / 447.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.1723, allocations: 64.59 kB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.1723, allocations: 0.5 kB / 447.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000131/0.1725, allocations: 116.1 kB / 447.4 MB, free: 42.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.238e-05/0.1725, allocations: 83.61 kB / 447.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.434e-05/0.1725, allocations: 96.19 kB / 447.5 MB, free: 42.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-06/0.1725, allocations: 25.7 kB / 447.6 MB, free: 42.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-06/0.1725, allocations: 80.14 kB / 447.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.275e-05/0.1725, allocations: 10.98 kB / 447.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.1725, allocations: 12.47 kB / 447.7 MB, free: 42.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.241e-05/0.1726, allocations: 313.7 kB / 448 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.1726, allocations: 25.7 kB / 448 MB, free: 41.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.312e-06/0.1726, allocations: 35.88 kB / 448 MB, free: 41.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.064e-05/0.1726, allocations: 63.14 kB / 448.1 MB, free: 41.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1726, allocations: 0 / 448.1 MB, free: 41.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.972e-05/0.1726, allocations: 88.25 kB / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1726, allocations: 31.2 kB / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1726, allocations: 4.219 kB / 448.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1727, allocations: 0 / 448.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.1727, allocations: 0 / 448.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1727, allocations: 3.938 kB / 448.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.498e-06/0.1727, allocations: 2.781 kB / 448.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.1727, allocations: 0 / 448.2 MB, free: 41.6 MB / 410.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 3.209e-05/0.1727, allocations: 145.8 kB / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-06/0.1727, allocations: 0 / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-06/0.1727, allocations: 3 kB / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1727, allocations: 6.281 kB / 448.4 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1727, allocations: 4 kB / 448.4 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1727, allocations: 3.938 kB / 448.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.321e-05/0.1727, allocations: 95.45 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.1727, allocations: 1.406 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.1727, allocations: 0 / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.31e-07/0.1727, allocations: 3.234 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.1728, allocations: 2.062 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.1728, allocations: 0 / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1728, allocations: 1.438 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.965e-05/0.1728, allocations: 120.4 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.585e-06/0.1728, allocations: 0 / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.146e-06/0.1728, allocations: 6.5 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.328e-06/0.1728, allocations: 0 / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.045e-05/0.1728, allocations: 3.219 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-06/0.1728, allocations: 0 / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.193e-06/0.1728, allocations: 79.22 kB / 448.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1728, allocations: 0 / 448.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000169/0.173, allocations: 66.27 kB / 448.7 MB, free: 41.09 MB / 410.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.000268/0.1733, allocations: 204.8 kB / 448.9 MB, free: 40.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.725e-05/0.1733, allocations: 111.7 kB / 449.1 MB, free: 40.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1733, allocations: 3.938 kB / 449.1 MB, free: 40.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.245e-05/0.1733, allocations: 94.31 kB / 449.1 MB, free: 40.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.187e-05/0.1734, allocations: 0 / 449.1 MB, free: 40.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001247/0.1736, allocations: 126.6 kB / 449.3 MB, free: 40.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.867e-05/0.1736, allocations: 53.98 kB / 449.3 MB, free: 40.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.398e-06/0.1736, allocations: 11.12 kB / 449.3 MB, free: 40.52 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1736, allocations: 3.938 kB / 449.3 MB, free: 40.52 MB / 410.7 MB Notification: Performance of Templates: time 0.001778/0.1754, allocations: 1.278 MB / 450.6 MB, free: 40.43 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9239146346226335]