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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008848/0.0008851, allocations: 97.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009765/0.0009766, allocations: 182.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2312/0.2312, allocations: 44.23 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005878/0.0005883, allocations: 11.98 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1495, allocations: 61.91 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006585/0.1503, allocations: 209.2 kB / 471.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1527, allocations: 1.495 MB / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.262e-05/0.1527, allocations: 0 / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.528e-05/0.1528, allocations: 0 / 473.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.1528, allocations: 0 / 473.1 MB, free: 12.01 MB / 350.1 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.00105/0.1538, allocations: 227.5 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.866e-05/0.1539, allocations: 4 kB / 473.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.741e-05/0.154, allocations: 3.984 kB / 473.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.124e-05/0.154, allocations: 7.922 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.067e-05/0.154, allocations: 0 / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.154, allocations: 0 / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007465/0.1548, allocations: 427.2 kB / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.1548, allocations: 0 / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.1549, allocations: 25.7 kB / 473.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003419/0.1552, allocations: 211.7 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1552, allocations: 0 / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1552, allocations: 0 / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1552, allocations: 0 / 474 MB, free: 11.11 MB / 350.1 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.0003573/0.1556, allocations: 373.1 kB / 474.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1556, allocations: 12.03 kB / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.1557, allocations: 0 / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.514e-05/0.1558, allocations: 167 kB / 474.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.1558, allocations: 0 / 474.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.1558, allocations: 4 kB / 474.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.732e-05/0.1559, allocations: 29.66 kB / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1559, allocations: 3.938 kB / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.156, allocations: 0 / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.156, allocations: 0 / 474.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.156, allocations: 7.938 kB / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.1561, allocations: 153.7 kB / 474.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.119e-05/0.1562, allocations: 18.67 kB / 474.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.864e-06/0.1562, allocations: 0 / 474.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.1563, allocations: 56.27 kB / 474.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.1563, allocations: 0 / 474.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001968/0.1565, allocations: 71.3 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.1565, allocations: 85.22 kB / 475 MB, free: 9.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.521e-05/0.1566, allocations: 89.86 kB / 475.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.1566, allocations: 25.7 kB / 475.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.731e-05/0.1566, allocations: 80.14 kB / 475.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.1567, allocations: 4 kB / 475.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-06/0.1567, allocations: 0 / 475.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.1568, allocations: 314.8 kB / 475.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.088e-06/0.1568, allocations: 0 / 475.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.816e-06/0.1568, allocations: 4 kB / 475.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.694e-05/0.1569, allocations: 29.7 kB / 475.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1569, allocations: 0 / 475.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.6e-05/0.1569, allocations: 75.23 kB / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.157, allocations: 29.7 kB / 475.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.157, allocations: 0 / 475.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.157, allocations: 3.953 kB / 475.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.157, allocations: 3.938 kB / 475.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.157, allocations: 0 / 475.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.1571, allocations: 0 / 475.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.1571, allocations: 12.08 kB / 475.6 MB, free: 9.238 MB / 350.1 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 8.257e-05/0.1572, allocations: 132.1 kB / 475.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.022e-05/0.1572, allocations: 7.984 kB / 475.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.287e-05/0.1572, allocations: 3.125 kB / 475.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.1572, allocations: 0 / 475.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1572, allocations: 3.953 kB / 475.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1572, allocations: 0 / 475.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.502e-05/0.1573, allocations: 145.7 kB / 475.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1573, allocations: 3.938 kB / 475.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.655e-06/0.1573, allocations: 8 kB / 475.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1573, allocations: 3.984 kB / 475.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1574, allocations: 0 / 475.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1574, allocations: 0 / 475.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1574, allocations: 0 / 475.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.086e-05/0.1575, allocations: 94.73 kB / 476 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.1575, allocations: 81.09 kB / 476.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.1575, allocations: 4 kB / 476.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.035e-05/0.1575, allocations: 4.031 kB / 476.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.848e-05/0.1576, allocations: 4 kB / 476.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1576, allocations: 0 / 476.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.086e-05/0.1576, allocations: 79.23 kB / 476.2 MB, free: 8.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1576, allocations: 0 / 476.2 MB, free: 8.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.158, allocations: 63.98 kB / 476.3 MB, free: 8.504 MB / 350.1 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.0004894/0.1585, allocations: 198.3 kB / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.633e-05/0.1586, allocations: 55.41 kB / 476.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.1586, allocations: 4.062 kB / 476.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.673e-05/0.1586, allocations: 67.27 kB / 476.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.863e-05/0.1587, allocations: 0 / 476.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001906/0.1589, allocations: 78.7 kB / 476.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.1592, allocations: 0.6731 MB / 477.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.003e-06/0.1592, allocations: 0 / 477.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.14e-05/0.1592, allocations: 7.438 kB / 477.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1592, allocations: 4 kB / 477.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of Templates: time 0.004228/0.1634, allocations: 1.244 MB / 478.6 MB, free: 6.105 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches