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.001245/0.001245, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2386/0.2386, allocations: 46.12 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 82.58 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1272, allocations: 62.45 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001813/0.1291, allocations: 490.5 kB / 480.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.1315, allocations: 1.606 MB / 482.2 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.1315, allocations: 3.938 kB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.1315, allocations: 0 / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.12e-06/0.1316, allocations: 0 / 482.2 MB, free: 3.098 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.000908/0.1325, allocations: 278.7 kB / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.913e-05/0.1325, allocations: 0 / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.1326, allocations: 0 / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.1326, allocations: 11.98 kB / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.1326, allocations: 0 / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.1326, allocations: 0 / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007357/0.1334, allocations: 499 kB / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.253e-06/0.1334, allocations: 0 / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.819e-05/0.1334, allocations: 0 / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.1339, allocations: 307.4 kB / 483.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1339, allocations: 0 / 483.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1339, allocations: 7.938 kB / 483.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1339, allocations: 4 kB / 483.3 MB, free: 2.016 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.0004115/0.1344, allocations: 373.2 kB / 483.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1344, allocations: 12.03 kB / 483.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.1344, allocations: 0.9375 kB / 483.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.1346, allocations: 164.4 kB / 483.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1346, allocations: 384 / 483.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-06/0.1346, allocations: 384 / 483.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.1347, allocations: 38.02 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1347, allocations: 0 / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.1347, allocations: 0 / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1347, allocations: 0 / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.524e-05/0.1348, allocations: 0 / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000182/0.1349, allocations: 153.7 kB / 484 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.331e-05/0.135, allocations: 18.52 kB / 484 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.964e-05/0.135, allocations: 16.89 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.742e-06/0.135, allocations: 4 kB / 484 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.143e-05/0.1351, allocations: 60.2 kB / 484.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1351, allocations: 0 / 484.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001882/0.1353, allocations: 71.36 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.1354, allocations: 81.05 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.99e-05/0.1354, allocations: 89.86 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1354, allocations: 25.7 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/0.1355, allocations: 84.14 kB / 484.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.1355, allocations: 8.125 kB / 484.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.1355, allocations: 9.719 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1357, allocations: 314.8 kB / 484.8 MB, free: 292 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.1357, allocations: 4 kB / 484.8 MB, free: 288 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.979e-06/0.1357, allocations: 0 / 484.8 MB, free: 288 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.217e-05/0.1358, allocations: 60.27 kB / 484.8 MB, free: 212 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1358, allocations: 3.938 kB / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.214e-05/0.1358, allocations: 67.41 kB / 484.9 MB, free: 128 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.1359, allocations: 41.62 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1359, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1359, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1359, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1359, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.136, allocations: 3.906 kB / 484.9 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.136, allocations: 4 kB / 485 MB, free: 72 kB / 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.0001044/0.1361, allocations: 131.5 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1361, allocations: 7.969 kB / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.716e-06/0.1361, allocations: 7.125 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1361, allocations: 0 / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1361, allocations: 0 / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1361, allocations: 3.984 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.1362, allocations: 145.7 kB / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1363, allocations: 0 / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1363, allocations: 0 / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1363, allocations: 7.938 kB / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.1363, allocations: 0 / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1363, allocations: 0 / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1363, allocations: 4 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.1364, allocations: 94.77 kB / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.1365, allocations: 77.11 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.1365, allocations: 3.938 kB / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-06/0.1365, allocations: 0 / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.725e-05/0.1365, allocations: 7.984 kB / 485.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1365, allocations: 3.938 kB / 485.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.312e-05/0.1366, allocations: 79.31 kB / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1366, allocations: 0 / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.1369, allocations: 60 kB / 485.6 MB, free: 15.34 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.0004918/0.1374, allocations: 197.1 kB / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.1375, allocations: 59.41 kB / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1375, allocations: 0 / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.795e-05/0.1376, allocations: 55.41 kB / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1377, allocations: 0 / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002056/0.1379, allocations: 88.98 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.1382, allocations: 0.669 MB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.559e-06/0.1382, allocations: 0 / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.291e-05/0.1383, allocations: 11.44 kB / 486.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1383, allocations: 0 / 486.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Templates: time 0.004045/0.1423, allocations: 1.292 MB / 487.9 MB, free: 12.9 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