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.001017/0.001017, allocations: 91.66 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 204.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.7 MB / 246.8 MB, free: 9.781 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2221/0.2221, allocations: 46.19 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.000283, allocations: 8 kB / 419.5 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1228, allocations: 63.56 MB / 483.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006704/0.1236, allocations: 217.2 kB / 483.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.126, allocations: 1.6 MB / 484.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.255e-05/0.126, allocations: 3.938 kB / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.126, allocations: 0 / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.448e-06/0.126, allocations: 0 / 484.9 MB, free: 2.285 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.0009317/0.127, allocations: 255.4 kB / 485.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.352e-05/0.127, allocations: 0 / 485.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.545e-05/0.1271, allocations: 4 kB / 485.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.551e-05/0.1271, allocations: 0 / 485.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.06e-05/0.1271, allocations: 0 / 485.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-06/0.1271, allocations: 0 / 485.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006627/0.1278, allocations: 495 kB / 485.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.304e-06/0.1278, allocations: 0 / 485.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.08e-05/0.1279, allocations: 29.7 kB / 485.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.1283, allocations: 315.4 kB / 486 MB, free: 1.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1283, allocations: 0 / 486 MB, free: 1.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1283, allocations: 3.938 kB / 486 MB, free: 1.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.1283, allocations: 0 / 486 MB, free: 1.199 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.0003449/0.1287, allocations: 371.9 kB / 486.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1287, allocations: 8.875 kB / 486.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.673e-05/0.1287, allocations: 12.88 kB / 486.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.648e-05/0.1288, allocations: 160.4 kB / 486.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1288, allocations: 384 / 486.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.1289, allocations: 384 / 486.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.24e-05/0.129, allocations: 38 kB / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.129, allocations: 0 / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.129, allocations: 0 / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.129, allocations: 0 / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.658e-05/0.129, allocations: 0 / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000113/0.1291, allocations: 153.7 kB / 486.7 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.453e-05/0.1292, allocations: 22.5 kB / 486.7 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.294e-05/0.1292, allocations: 8.797 kB / 486.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.1292, allocations: 96 / 486.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.1293, allocations: 68.19 kB / 486.8 MB, free: 208 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1293, allocations: 0 / 486.8 MB, free: 208 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001496/0.1294, allocations: 63.53 kB / 486.9 MB, free: 132 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.1295, allocations: 89.03 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.615e-05/0.1295, allocations: 89.86 kB / 487 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.1295, allocations: 25.7 kB / 487.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.762e-05/0.1296, allocations: 80.14 kB / 487.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.1296, allocations: 0 / 487.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.1296, allocations: 13.72 kB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1298, allocations: 310.8 kB / 487.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-06/0.1298, allocations: 0 / 487.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.614e-06/0.1298, allocations: 8 kB / 487.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.666e-05/0.1298, allocations: 60.27 kB / 487.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1298, allocations: 3.938 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.794e-05/0.1299, allocations: 63.39 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.13, allocations: 33.64 kB / 487.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.13, allocations: 0 / 487.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.13, allocations: 3.938 kB / 487.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.13, allocations: 4 kB / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.13, allocations: 0 / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.13, allocations: 8 kB / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.1301, allocations: 4 kB / 487.6 MB, free: 15.26 MB / 366.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 9.929e-05/0.1302, allocations: 143.5 kB / 487.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-06/0.1302, allocations: 3.938 kB / 487.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-06/0.1302, allocations: 3.125 kB / 487.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1302, allocations: 0 / 487.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1302, allocations: 0 / 487.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1302, allocations: 0 / 487.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.31e-05/0.1303, allocations: 149.7 kB / 487.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1303, allocations: 4 kB / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.1303, allocations: 0 / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1303, allocations: 3.938 kB / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.1303, allocations: 0 / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1303, allocations: 0 / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1304, allocations: 0 / 487.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.172e-05/0.1304, allocations: 94.77 kB / 488 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.1305, allocations: 77.11 kB / 488.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.1305, allocations: 11.97 kB / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.1305, allocations: 0 / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.1306, allocations: 0 / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1306, allocations: 3.938 kB / 488.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.321e-05/0.1306, allocations: 75.28 kB / 488.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1306, allocations: 0 / 488.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.1309, allocations: 67.98 kB / 488.3 MB, free: 14.53 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.0004675/0.1314, allocations: 182.6 kB / 488.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.348e-05/0.1315, allocations: 63.39 kB / 488.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1315, allocations: 0 / 488.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.157e-05/0.1316, allocations: 59.41 kB / 488.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.1317, allocations: 4.281 kB / 488.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001679/0.1319, allocations: 78.7 kB / 488.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.1321, allocations: 0.6731 MB / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.1321, allocations: 0 / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.114e-05/0.1321, allocations: 11.44 kB / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1321, allocations: 0 / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Templates: time 0.003715/0.1359, allocations: 1.279 MB / 490.6 MB, free: 12.11 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