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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008533/0.0008533, allocations: 90.75 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4191/0.4191, allocations: 44.2 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003646, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4154/0.4158, allocations: 61.89 MB / 0.5095 GB, free: 37.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.5362, allocations: 87.6 MB / 0.5951 GB, free: 7.539 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.5364, allocations: 63.97 kB / 0.5951 GB, free: 7.477 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008561/0.545, allocations: 2.814 MB / 0.5979 GB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.545, allocations: 0 / 0.5979 GB, free: 4.664 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.545, allocations: 0 / 0.5979 GB, free: 4.664 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.0003749/0.5454, allocations: 384.9 kB / 0.5983 GB, free: 4.234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.5455, allocations: 8.031 kB / 0.5983 GB, free: 4.227 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.5455, allocations: 11.98 kB / 0.5983 GB, free: 4.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.536e-05/0.5456, allocations: 163 kB / 0.5984 GB, free: 4.016 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.5456, allocations: 4 kB / 0.5984 GB, free: 4.012 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.5456, allocations: 0 / 0.5984 GB, free: 4.012 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.082e-05/0.5457, allocations: 29.7 kB / 0.5985 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.5457, allocations: 0 / 0.5985 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.5458, allocations: 0 / 0.5985 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.5458, allocations: 0 / 0.5985 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.895e-05/0.5458, allocations: 3.938 kB / 0.5985 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.5459, allocations: 165.6 kB / 0.5986 GB, free: 3.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.533e-05/0.546, allocations: 14.58 kB / 0.5986 GB, free: 3.738 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.546, allocations: 0 / 0.5986 GB, free: 3.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.176e-05/0.5461, allocations: 56.27 kB / 0.5987 GB, free: 3.668 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 3.176e-06/0.5461, allocations: 8.078 kB / 0.5987 GB, free: 3.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.5463, allocations: 67.33 kB / 0.5988 GB, free: 3.582 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.5463, allocations: 81.11 kB / 0.5988 GB, free: 3.484 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.488e-05/0.5464, allocations: 89.12 kB / 0.5989 GB, free: 3.391 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.5464, allocations: 25.7 kB / 0.599 GB, free: 3.359 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.703e-05/0.5464, allocations: 80.14 kB / 0.599 GB, free: 3.277 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.5465, allocations: 0 / 0.599 GB, free: 3.277 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-06/0.5465, allocations: 0 / 0.599 GB, free: 3.277 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5466, allocations: 310.8 kB / 0.5993 GB, free: 2.965 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-06/0.5466, allocations: 4 kB / 0.5993 GB, free: 2.961 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-06/0.5466, allocations: 0 / 0.5993 GB, free: 2.961 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.77e-05/0.5467, allocations: 33.77 kB / 0.5994 GB, free: 2.922 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5467, allocations: 0 / 0.5994 GB, free: 2.922 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.949e-05/0.5467, allocations: 67.34 kB / 0.5994 GB, free: 2.844 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.5468, allocations: 31.11 kB / 0.5995 GB, free: 2.809 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.076e-06/0.5468, allocations: 3.984 kB / 0.5995 GB, free: 2.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.5468, allocations: 7.938 kB / 0.5995 GB, free: 2.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.545e-06/0.5468, allocations: 0 / 0.5995 GB, free: 2.797 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.5468, allocations: 3.938 kB / 0.5995 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.255e-05/0.5469, allocations: 0 / 0.5995 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.5469, allocations: 0 / 0.5995 GB, free: 2.793 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.122e-05/0.547, allocations: 145.5 kB / 0.5996 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.547, allocations: 3.953 kB / 0.5996 GB, free: 2.633 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.547, allocations: 3.125 kB / 0.5996 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.547, allocations: 0 / 0.5996 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.547, allocations: 0 / 0.5996 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.547, allocations: 0 / 0.5996 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.5471, allocations: 153.7 kB / 0.5998 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.5471, allocations: 0 / 0.5998 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.5471, allocations: 0 / 0.5998 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.5471, allocations: 0 / 0.5998 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.5472, allocations: 7.953 kB / 0.5998 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5472, allocations: 0 / 0.5998 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5472, allocations: 4 kB / 0.5998 GB, free: 2.418 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.831e-05/0.5473, allocations: 90.77 kB / 0.5999 GB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.5473, allocations: 77.11 kB / 0.5999 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.5473, allocations: 4 kB / 0.5999 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.5473, allocations: 3.953 kB / 0.5999 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.5474, allocations: 7.969 kB / 0.6 GB, free: 2.195 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.5474, allocations: 0 / 0.6 GB, free: 2.195 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.55e-05/0.5474, allocations: 75.28 kB / 0.6 GB, free: 2.121 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5474, allocations: 0 / 0.6 GB, free: 2.121 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003321/0.5477, allocations: 83.86 kB / 0.6001 GB, free: 2.039 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 (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.0004826/0.5482, allocations: 215.1 kB / 0.6003 GB, free: 1.832 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.864e-05/0.5483, allocations: 59.41 kB / 0.6004 GB, free: 1.762 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5483, allocations: 0 / 0.6004 GB, free: 1.762 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.5484, allocations: 55.45 kB / 0.6004 GB, free: 1.695 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.447e-05/0.5485, allocations: 8.062 kB / 0.6004 GB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001703/0.5486, allocations: 82.64 kB / 0.6005 GB, free: 1.578 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.5489, allocations: 0.677 MB / 0.6012 GB, free: 0.875 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.095e-06/0.5489, allocations: 0 / 0.6012 GB, free: 0.875 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.005e-05/0.5489, allocations: 7.438 kB / 0.6012 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5489, allocations: 0 / 0.6012 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of Templates: time 0.003697/0.5526, allocations: 1.435 MB / 0.6026 GB, free: 15.43 MB / 426.7 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