Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2362/0.2362, allocations: 46.11 MB / 343.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001525, allocations: 75.22 kB / 416.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1272, allocations: 62.44 MB / 479.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001897/0.1292, allocations: 0.5526 MB / 479.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.1316, allocations: 1.614 MB / 481.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.452e-05/0.1316, allocations: 0 / 481.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.1317, allocations: 0 / 481.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.1317, allocations: 0 / 481.4 MB, free: 3.508 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0009582/0.1327, allocations: 243.5 kB / 481.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.1327, allocations: 8 kB / 481.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.259e-05/0.1328, allocations: 0 / 481.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.873e-05/0.1328, allocations: 0 / 481.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.185e-05/0.1328, allocations: 0 / 481.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-06/0.1328, allocations: 3.984 kB / 481.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007536/0.1336, allocations: 499 kB / 482.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.088e-06/0.1336, allocations: 0 / 482.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.1336, allocations: 3.984 kB / 482.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.1342, allocations: 315.3 kB / 482.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1342, allocations: 0 / 482.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1342, allocations: 0 / 482.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1342, allocations: 0 / 482.5 MB, free: 2.457 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.0004019/0.1346, allocations: 373.3 kB / 482.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1347, allocations: 8.875 kB / 482.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.511e-05/0.1347, allocations: 0.9375 kB / 482.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.1348, allocations: 168.4 kB / 483 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.1348, allocations: 4.375 kB / 483 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.1349, allocations: 4.359 kB / 483 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.135, allocations: 30.02 kB / 483.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.135, allocations: 4 kB / 483.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.135, allocations: 0 / 483.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.135, allocations: 4 kB / 483.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.489e-05/0.135, allocations: 7.875 kB / 483.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.1352, allocations: 153.7 kB / 483.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.655e-05/0.1352, allocations: 18.61 kB / 483.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.33e-05/0.1353, allocations: 4.859 kB / 483.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-06/0.1353, allocations: 0 / 483.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.1353, allocations: 64.27 kB / 483.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1353, allocations: 0 / 483.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001895/0.1355, allocations: 71.33 kB / 483.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.1356, allocations: 85.17 kB / 483.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.97e-05/0.1356, allocations: 89.86 kB / 483.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.1356, allocations: 25.7 kB / 483.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.1357, allocations: 80.14 kB / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.1357, allocations: 0 / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.1357, allocations: 13.72 kB / 483.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1359, allocations: 310.8 kB / 484 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.1359, allocations: 0 / 484 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.1359, allocations: 4 kB / 484 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.75e-05/0.136, allocations: 68.25 kB / 484.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.136, allocations: 0 / 484.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.63e-05/0.136, allocations: 63.34 kB / 484.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.1361, allocations: 33.64 kB / 484.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1361, allocations: 4 kB / 484.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.1361, allocations: 0 / 484.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.535e-06/0.1361, allocations: 3.984 kB / 484.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.1361, allocations: 0 / 484.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.1361, allocations: 8 kB / 484.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1362, allocations: 0 / 484.2 MB, free: 0.5156 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.899e-05/0.1362, allocations: 139.5 kB / 484.3 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.1363, allocations: 3.938 kB / 484.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.847e-06/0.1363, allocations: 3.125 kB / 484.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1363, allocations: 0 / 484.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1363, allocations: 0 / 484.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1363, allocations: 4 kB / 484.3 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.694e-05/0.1364, allocations: 149.7 kB / 484.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1364, allocations: 4 kB / 484.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1364, allocations: 0 / 484.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1364, allocations: 3.938 kB / 484.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.1364, allocations: 0 / 484.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1364, allocations: 4 kB / 484.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1364, allocations: 0 / 484.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.113e-05/0.1365, allocations: 90.77 kB / 484.6 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.1366, allocations: 81.11 kB / 484.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.1366, allocations: 11.91 kB / 484.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.008e-05/0.1366, allocations: 0 / 484.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.1366, allocations: 7.938 kB / 484.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1366, allocations: 0 / 484.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.365e-05/0.1367, allocations: 75.28 kB / 484.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1367, allocations: 4 kB / 484.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000307/0.137, allocations: 63.98 kB / 484.8 MB, free: 15.78 MB / 366.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.0004296/0.1374, allocations: 193.2 kB / 485 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.82e-05/0.1375, allocations: 59.41 kB / 485 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1375, allocations: 0 / 485 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.289e-05/0.1376, allocations: 59.34 kB / 485.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1377, allocations: 8 kB / 485.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001957/0.1379, allocations: 74.75 kB / 485.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1382, allocations: 0.6731 MB / 485.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.406e-06/0.1382, allocations: 4 kB / 485.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.328e-06/0.1382, allocations: 7.438 kB / 485.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of SimCode: time 2.274e-06/0.1382, allocations: 0 / 485.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Templates: time 0.003893/0.1421, allocations: 1.281 MB / 487.1 MB, free: 13.35 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches