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.001199/0.001199, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001171/0.001171, allocations: 187 kB / 19.34 MB, free: 3.641 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.337/1.337, allocations: 222.9 MB / 243 MB, free: 15.14 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.2239/0.2239, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 65.77 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.158, allocations: 60.84 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.002366/0.1604, allocations: 474.9 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003043/0.1635, allocations: 1.578 MB / 472.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.1635, allocations: 0 / 472.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.1636, allocations: 0 / 472.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-06/0.1636, allocations: 0 / 472.8 MB, free: 11.6 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.001132/0.1647, allocations: 259.3 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.212e-05/0.1648, allocations: 7.984 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.89e-05/0.1649, allocations: 8 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.639e-05/0.1649, allocations: 0 / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.021e-05/0.1649, allocations: 0 / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-06/0.1649, allocations: 0 / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009758/0.1659, allocations: 495 kB / 473.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.166, allocations: 0 / 473.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.166, allocations: 0 / 473.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005838/0.1666, allocations: 303.3 kB / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.1666, allocations: 3.984 kB / 473.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1666, allocations: 4 kB / 473.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.1666, allocations: 4 kB / 473.8 MB, free: 10.54 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.0004312/0.1671, allocations: 373.3 kB / 474.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1671, allocations: 12.03 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.1672, allocations: 0.9375 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.1673, allocations: 160.4 kB / 474.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1673, allocations: 384 / 474.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-06/0.1674, allocations: 384 / 474.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.1675, allocations: 49.92 kB / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.1675, allocations: 0 / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.1675, allocations: 0 / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1675, allocations: 0 / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.009e-05/0.1676, allocations: 0 / 474.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.1677, allocations: 153.7 kB / 474.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.82e-05/0.1678, allocations: 14.58 kB / 474.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.781e-05/0.1678, allocations: 8.953 kB / 474.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.1679, allocations: 7.984 kB / 474.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.832e-05/0.1679, allocations: 60.2 kB / 474.6 MB, free: 9.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/0.1679, allocations: 3.938 kB / 474.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002046/0.1682, allocations: 63.41 kB / 474.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.1682, allocations: 77.11 kB / 474.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.976e-05/0.1683, allocations: 93.8 kB / 474.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1683, allocations: 29.69 kB / 474.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.1684, allocations: 80.27 kB / 475 MB, free: 9.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.1684, allocations: 8 kB / 475 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.1685, allocations: 9.719 kB / 475 MB, free: 9.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1687, allocations: 318.8 kB / 475.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.77e-05/0.1687, allocations: 4 kB / 475.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.635e-06/0.1687, allocations: 0 / 475.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.731e-05/0.1688, allocations: 64.2 kB / 475.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1688, allocations: 0 / 475.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001221/0.169, allocations: 67.36 kB / 475.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.169, allocations: 41.64 kB / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.169, allocations: 0 / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1691, allocations: 0 / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1691, allocations: 0 / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.1691, allocations: 0 / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.1691, allocations: 0 / 475.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.1691, allocations: 4 kB / 475.5 MB, free: 8.594 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.1692, allocations: 135.5 kB / 475.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.431e-05/0.1693, allocations: 7.969 kB / 475.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.462e-05/0.1694, allocations: 7.125 kB / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1694, allocations: 0 / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1694, allocations: 0 / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1694, allocations: 0 / 475.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.1695, allocations: 141.7 kB / 475.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1695, allocations: 0 / 475.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-06/0.1696, allocations: 3.984 kB / 475.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1696, allocations: 11.88 kB / 475.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.1696, allocations: 0 / 475.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1696, allocations: 0 / 475.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1696, allocations: 4 kB / 475.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.1697, allocations: 94.81 kB / 475.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.455e-05/0.1698, allocations: 77.11 kB / 476 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.1698, allocations: 3.938 kB / 476 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.398e-05/0.1699, allocations: 0 / 476 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.22e-05/0.1699, allocations: 8 kB / 476 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.1699, allocations: 0 / 476 MB, free: 8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.17, allocations: 79.31 kB / 476 MB, free: 7.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.17, allocations: 0 / 476 MB, free: 7.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005037/0.1705, allocations: 63.98 kB / 476.1 MB, free: 7.859 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 (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.0005696/0.1711, allocations: 204.9 kB / 476.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.1712, allocations: 67.34 kB / 476.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1712, allocations: 0 / 476.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.936e-05/0.1713, allocations: 59.39 kB / 476.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.1715, allocations: 0 / 476.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002121/0.1717, allocations: 81.06 kB / 476.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.172, allocations: 0.669 MB / 477.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.1721, allocations: 4 kB / 477.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.143e-05/0.1721, allocations: 7.438 kB / 477.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1721, allocations: 0 / 477.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of Templates: time 0.00574/0.1778, allocations: 1.271 MB / 478.5 MB, free: 5.434 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches