Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.00167, allocations: 180.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 82.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3964/0.3964, allocations: 43.57 MB / 362.7 MB, free: 51.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.0003841, allocations: 16 kB / 431.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1496, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0007048/0.1504, allocations: 228.3 kB / 490.5 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.1526, allocations: 1.529 MB / 492 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.174e-05/0.1527, allocations: 0 / 492 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.1527, allocations: 0 / 492 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.468e-06/0.1527, allocations: 0 / 492 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009503/0.1537, allocations: 255.4 kB / 492.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.61e-05/0.1537, allocations: 0 / 492.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.1538, allocations: 0 / 492.2 MB, free: 8.969 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.764e-05/0.1538, allocations: 4 kB / 492.2 MB, free: 8.965 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.755e-05/0.1538, allocations: 0 / 492.2 MB, free: 8.965 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.1538, allocations: 0 / 492.2 MB, free: 8.965 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007199/0.1546, allocations: 439 kB / 492.7 MB, free: 8.535 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.1546, allocations: 0 / 492.7 MB, free: 8.535 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.1546, allocations: 25.7 kB / 492.7 MB, free: 8.504 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.155, allocations: 207.7 kB / 492.9 MB, free: 8.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.155, allocations: 4 kB / 492.9 MB, free: 8.297 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.155, allocations: 7.938 kB / 492.9 MB, free: 8.289 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1551, allocations: 0 / 492.9 MB, free: 8.289 MB / 378.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.000445/0.1555, allocations: 376.6 kB / 493.3 MB, free: 7.871 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1556, allocations: 11.97 kB / 493.3 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.343e-05/0.1556, allocations: 3.953 kB / 493.3 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.1557, allocations: 159.1 kB / 493.4 MB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1558, allocations: 4 kB / 493.4 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.1558, allocations: 0 / 493.4 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.205e-05/0.1559, allocations: 33.69 kB / 493.5 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1559, allocations: 4 kB / 493.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.1559, allocations: 0 / 493.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1559, allocations: 0 / 493.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.296e-05/0.1559, allocations: 3.953 kB / 493.5 MB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.1561, allocations: 145.7 kB / 493.6 MB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.643e-05/0.1562, allocations: 22.55 kB / 493.7 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.732e-05/0.1562, allocations: 8.844 kB / 493.7 MB, free: 7.375 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.418e-06/0.1562, allocations: 4 kB / 493.7 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.1563, allocations: 60.33 kB / 493.7 MB, free: 7.297 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1563, allocations: 0 / 493.7 MB, free: 7.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000192/0.1565, allocations: 59.41 kB / 493.8 MB, free: 7.227 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.1565, allocations: 89.03 kB / 493.9 MB, free: 7.121 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.1566, allocations: 93.8 kB / 494 MB, free: 7.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1566, allocations: 25.7 kB / 494 MB, free: 6.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.1567, allocations: 84.12 kB / 494.1 MB, free: 6.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.1567, allocations: 4.125 kB / 494.1 MB, free: 6.898 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.1567, allocations: 0 / 494.1 MB, free: 6.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1568, allocations: 314.8 kB / 494.4 MB, free: 6.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.1569, allocations: 4 kB / 494.4 MB, free: 6.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.111e-06/0.1569, allocations: 0 / 494.4 MB, free: 6.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.354e-05/0.1569, allocations: 25.7 kB / 494.4 MB, free: 6.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1569, allocations: 3.938 kB / 494.4 MB, free: 6.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.888e-05/0.157, allocations: 67.39 kB / 494.5 MB, free: 6.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/0.1571, allocations: 41.23 kB / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1571, allocations: 0 / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1571, allocations: 0 / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.1571, allocations: 0 / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1571, allocations: 0 / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.369e-05/0.1572, allocations: 0 / 494.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.1572, allocations: 3.938 kB / 494.5 MB, free: 6.418 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001204/0.1573, allocations: 143.5 kB / 494.7 MB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.1573, allocations: 0 / 494.7 MB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.779e-05/0.1573, allocations: 11.11 kB / 494.7 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1573, allocations: 0 / 494.7 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1574, allocations: 4 kB / 494.7 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.1574, allocations: 0 / 494.7 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.1575, allocations: 149.6 kB / 494.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1575, allocations: 0 / 494.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.352e-06/0.1575, allocations: 0 / 494.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1575, allocations: 0 / 494.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1575, allocations: 11.98 kB / 494.8 MB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1576, allocations: 0 / 494.8 MB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1576, allocations: 0 / 494.8 MB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.1577, allocations: 94.78 kB / 494.9 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.394e-05/0.1577, allocations: 85.09 kB / 495 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.1578, allocations: 0 / 495 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-06/0.1578, allocations: 0 / 495 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1578, allocations: 3.938 kB / 495 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.1578, allocations: 0 / 495 MB, free: 5.816 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.1578, allocations: 79.28 kB / 495.1 MB, free: 5.738 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1578, allocations: 4.031 kB / 495.1 MB, free: 5.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003669/0.1582, allocations: 63.98 kB / 495.2 MB, free: 5.672 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005691/0.1588, allocations: 187.1 kB / 495.3 MB, free: 5.484 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001044/0.1589, allocations: 59.41 kB / 495.4 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1589, allocations: 4 kB / 495.4 MB, free: 5.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.159, allocations: 55.39 kB / 495.5 MB, free: 5.344 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.1591, allocations: 7.953 kB / 495.5 MB, free: 5.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002635/0.1594, allocations: 96.47 kB / 495.6 MB, free: 5.211 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.1597, allocations: 0.681 MB / 496.2 MB, free: 4.504 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.419e-05/0.1598, allocations: 7.438 kB / 496.2 MB, free: 4.5 MB / 378.7 MB Notification: Performance of SimCode: time 9.41e-07/0.1598, allocations: 0 / 496.2 MB, free: 4.5 MB / 378.7 MB Notification: Performance of Templates: time 0.003615/0.1634, allocations: 1.276 MB / 497.5 MB, free: 3.223 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestMatrices/TestMatrices.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches