Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000969/0.000969, allocations: 97.8 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 180.6 kB / 16.92 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 223.1 MB, free: 5.453 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4495/0.4495, allocations: 43.57 MB / 315 MB, free: 8.895 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 12 kB / 384.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1386, allocations: 58.86 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006178/0.1393, allocations: 224.4 kB / 443.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1413, allocations: 1.58 MB / 445.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.156e-05/0.1414, allocations: 0 / 445.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.1414, allocations: 4 kB / 445.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.1414, allocations: 7.938 kB / 445.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.1422, allocations: 239.5 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.454e-05/0.1422, allocations: 0 / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.658e-05/0.1423, allocations: 4 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.925e-05/0.1423, allocations: 4 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.201e-05/0.1423, allocations: 0 / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.26e-06/0.1423, allocations: 0 / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006394/0.143, allocations: 491 kB / 446 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-06/0.143, allocations: 3.938 kB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.1431, allocations: 25.7 kB / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.1435, allocations: 311.3 kB / 446.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1435, allocations: 0 / 446.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1435, allocations: 0 / 446.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1435, allocations: 0 / 446.3 MB, free: 9.797 MB / 382.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.000391/0.1439, allocations: 385.2 kB / 446.7 MB, free: 9.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1439, allocations: 8.031 kB / 446.7 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.144, allocations: 0.9375 kB / 446.7 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.1441, allocations: 160.4 kB / 446.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1441, allocations: 384 / 446.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.1441, allocations: 4.375 kB / 446.8 MB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.687e-05/0.1442, allocations: 34 kB / 446.9 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.1442, allocations: 0 / 446.9 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1443, allocations: 4 kB / 446.9 MB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1443, allocations: 4 kB / 446.9 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.054e-05/0.1443, allocations: 11.88 kB / 446.9 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.1444, allocations: 145.7 kB / 447 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.239e-05/0.1445, allocations: 18.61 kB / 447.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.505e-05/0.1445, allocations: 4.859 kB / 447.1 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.1445, allocations: 0 / 447.1 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/0.1446, allocations: 64.19 kB / 447.1 MB, free: 8.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1446, allocations: 4 kB / 447.1 MB, free: 8.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001542/0.1448, allocations: 63.41 kB / 447.2 MB, free: 8.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.1448, allocations: 81.11 kB / 447.3 MB, free: 8.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.294e-05/0.1449, allocations: 93.86 kB / 447.4 MB, free: 8.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1449, allocations: 25.7 kB / 447.4 MB, free: 8.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.532e-05/0.1449, allocations: 80.14 kB / 447.5 MB, free: 8.406 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1449, allocations: 3.984 kB / 447.5 MB, free: 8.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.145, allocations: 9.719 kB / 447.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1451, allocations: 319 kB / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-06/0.1451, allocations: 0 / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.638e-06/0.1451, allocations: 7.938 kB / 447.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.366e-05/0.1451, allocations: 64.27 kB / 447.9 MB, free: 7.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1452, allocations: 0 / 447.9 MB, free: 7.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.906e-05/0.1452, allocations: 63.33 kB / 447.9 MB, free: 7.906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.1453, allocations: 37.64 kB / 448 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1453, allocations: 0 / 448 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1453, allocations: 4.094 kB / 448 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1453, allocations: 0 / 448 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1453, allocations: 0 / 448 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.1453, allocations: 0 / 448 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.1453, allocations: 4 kB / 448 MB, free: 7.855 MB / 382.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 7.987e-05/0.1454, allocations: 131.8 kB / 448.1 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.1454, allocations: 3.938 kB / 448.1 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.494e-05/0.1454, allocations: 15.11 kB / 448.1 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1455, allocations: 0 / 448.1 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1455, allocations: 4 kB / 448.1 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1455, allocations: 0 / 448.1 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.1456, allocations: 141.7 kB / 448.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1456, allocations: 0 / 448.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.154e-06/0.1456, allocations: 0 / 448.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1456, allocations: 11.88 kB / 448.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.1456, allocations: 0 / 448.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1456, allocations: 0 / 448.3 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1456, allocations: 3.984 kB / 448.3 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.275e-05/0.1457, allocations: 94.78 kB / 448.4 MB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.1458, allocations: 81.05 kB / 448.4 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1458, allocations: 7.922 kB / 448.5 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.1458, allocations: 0 / 448.5 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.1458, allocations: 0 / 448.5 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.1458, allocations: 4 kB / 448.5 MB, free: 7.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.356e-05/0.1458, allocations: 75.28 kB / 448.5 MB, free: 7.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1459, allocations: 0 / 448.5 MB, free: 7.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.1462, allocations: 63.98 kB / 448.6 MB, free: 7.121 MB / 382.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.0003867/0.1466, allocations: 198.8 kB / 448.8 MB, free: 6.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.646e-05/0.1467, allocations: 67.34 kB / 448.9 MB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1467, allocations: 0 / 448.9 MB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.923e-05/0.1467, allocations: 55.41 kB / 448.9 MB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.1468, allocations: 3.984 kB / 448.9 MB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001731/0.147, allocations: 78.77 kB / 449 MB, free: 6.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.1473, allocations: 0.673 MB / 449.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.1473, allocations: 7.938 kB / 449.7 MB, free: 5.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.223e-06/0.1473, allocations: 11.56 kB / 449.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1473, allocations: 0 / 449.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of Templates: time 0.003653/0.151, allocations: 1.262 MB / 450.9 MB, free: 4.695 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches