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.0007647/0.0007647, allocations: 98.08 kB / 18.01 MB, free: 5.738 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.001252/0.001252, allocations: 178.2 kB / 18.91 MB, free: 4.871 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.353/1.353, allocations: 223.3 MB / 243 MB, free: 14.38 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.1979/0.1979, allocations: 44.24 MB / 338.3 MB, free: 2.434 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 12 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1279, allocations: 61.92 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006388/0.1286, allocations: 217.3 kB / 473.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1306, allocations: 1.556 MB / 474.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-06/0.1307, allocations: 0 / 474.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.1307, allocations: 0 / 474.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1307, allocations: 4 kB / 474.7 MB, free: 11.55 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.0007488/0.1314, allocations: 246.1 kB / 474.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.242e-05/0.1315, allocations: 0 / 474.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.886e-05/0.1315, allocations: 3.938 kB / 474.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.1316, allocations: 4 kB / 474.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.665e-05/0.1316, allocations: 3.984 kB / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.242e-06/0.1316, allocations: 0 / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006536/0.1323, allocations: 479 kB / 475.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.1323, allocations: 7.984 kB / 475.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.1323, allocations: 25.7 kB / 475.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.1326, allocations: 211.7 kB / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1326, allocations: 0 / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1326, allocations: 3.938 kB / 475.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1327, allocations: 0 / 475.6 MB, free: 10.59 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.0003515/0.133, allocations: 365.3 kB / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1331, allocations: 8.031 kB / 476 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.1331, allocations: 4.938 kB / 476 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.672e-05/0.1332, allocations: 164.3 kB / 476.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1332, allocations: 8.375 kB / 476.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.1332, allocations: 384 / 476.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.058e-05/0.1333, allocations: 38 kB / 476.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.1333, allocations: 0 / 476.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.1333, allocations: 0 / 476.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1334, allocations: 0 / 476.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.736e-05/0.1334, allocations: 0 / 476.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001154/0.1335, allocations: 145.7 kB / 476.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.827e-05/0.1335, allocations: 26.5 kB / 476.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.945e-05/0.1336, allocations: 8.859 kB / 476.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.1336, allocations: 4.094 kB / 476.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.1336, allocations: 60.2 kB / 476.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1336, allocations: 0 / 476.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.1338, allocations: 63.34 kB / 476.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1339, allocations: 85.03 kB / 476.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.716e-05/0.1339, allocations: 93.98 kB / 476.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.1339, allocations: 25.7 kB / 476.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.989e-05/0.134, allocations: 84.14 kB / 476.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.134, allocations: 0 / 476.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.134, allocations: 13.72 kB / 476.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.1341, allocations: 310.8 kB / 477.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.115e-06/0.1341, allocations: 0 / 477.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.1341, allocations: 0 / 477.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.138e-05/0.1342, allocations: 64.33 kB / 477.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1342, allocations: 0 / 477.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.691e-05/0.1343, allocations: 75.23 kB / 477.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.1343, allocations: 33.64 kB / 477.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1343, allocations: 0 / 477.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.1343, allocations: 4 kB / 477.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1344, allocations: 0 / 477.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.1344, allocations: 0 / 477.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.1344, allocations: 0 / 477.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.1344, allocations: 0 / 477.3 MB, free: 8.664 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 7.653e-05/0.1345, allocations: 143.6 kB / 477.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.098e-05/0.1345, allocations: 3.938 kB / 477.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.009e-05/0.1345, allocations: 7.062 kB / 477.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.1345, allocations: 0 / 477.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1345, allocations: 4 kB / 477.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.1345, allocations: 0 / 477.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.1346, allocations: 145.7 kB / 477.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1347, allocations: 3.984 kB / 477.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.1347, allocations: 0 / 477.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1347, allocations: 7.938 kB / 477.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.1347, allocations: 4 kB / 477.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1347, allocations: 0 / 477.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1347, allocations: 0 / 477.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.1348, allocations: 98.75 kB / 477.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.1349, allocations: 77.11 kB / 477.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.1349, allocations: 7.938 kB / 477.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.043e-05/0.1349, allocations: 4.031 kB / 477.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.699e-05/0.1349, allocations: 3.984 kB / 477.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.135, allocations: 0 / 477.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.433e-05/0.135, allocations: 75.28 kB / 477.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.135, allocations: 0 / 477.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1353, allocations: 63.98 kB / 477.9 MB, free: 7.918 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.000439/0.1357, allocations: 193.4 kB / 478.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.529e-05/0.1358, allocations: 59.41 kB / 478.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1358, allocations: 0 / 478.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.353e-05/0.1359, allocations: 63.45 kB / 478.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.136, allocations: 4 kB / 478.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000195/0.1362, allocations: 104.3 kB / 478.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.1365, allocations: 0.6731 MB / 479 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.32e-05/0.1365, allocations: 11.42 kB / 479 MB, free: 6.734 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1365, allocations: 0 / 479 MB, free: 6.734 MB / 350.1 MB Notification: Performance of Templates: time 0.003047/0.1396, allocations: 1.268 MB / 480.3 MB, free: 5.465 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/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