Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001841/0.00184, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002214/0.002214, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.139/2.139, allocations: 227.4 MB / 246.9 MB, free: 8.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.41/0.41, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003026/0.003026, allocations: 73.62 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2241, allocations: 62.45 MB / 479.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.003637/0.2278, allocations: 0.5372 MB / 480.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.2431, allocations: 5.192 MB / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.534e-05/0.2432, allocations: 0 / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.149e-05/0.2433, allocations: 0 / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.357e-06/0.2433, allocations: 0 / 485.7 MB, free: 15.91 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.01372/0.2571, allocations: 2.577 MB / 488.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.029e-05/0.2572, allocations: 0 / 488.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.636e-05/0.2573, allocations: 4 kB / 488.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.474e-05/0.2573, allocations: 4 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.496e-05/0.2573, allocations: 0 / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.377e-06/0.2573, allocations: 0 / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05316/0.3105, allocations: 18.94 MB / 0.4953 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.3107, allocations: 0 / 0.4953 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.654e-05/0.3108, allocations: 8 kB / 0.4953 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5529/0.8637, allocations: 20.35 MB / 0.5152 GB, free: 16.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.8638, allocations: 0 / 0.5152 GB, free: 16.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.8638, allocations: 0 / 0.5152 GB, free: 16.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.8638, allocations: 1.125 kB / 0.5152 GB, free: 16.81 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.02445/0.8883, allocations: 0.6532 MB / 0.5158 GB, free: 16.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.327e-05/0.8884, allocations: 10.25 kB / 0.5158 GB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.8885, allocations: 4.406 kB / 0.5158 GB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.8886, allocations: 166.8 kB / 0.516 GB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.8886, allocations: 1.156 kB / 0.516 GB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.8887, allocations: 2.969 kB / 0.516 GB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.8888, allocations: 30.86 kB / 0.516 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.8888, allocations: 0 / 0.516 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.8889, allocations: 0 / 0.516 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.8889, allocations: 7.281 kB / 0.516 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.243e-05/0.8889, allocations: 4.062 kB / 0.516 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.8891, allocations: 147.1 kB / 0.5162 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.735e-05/0.8892, allocations: 19.64 kB / 0.5162 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.8892, allocations: 6.797 kB / 0.5162 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.8892, allocations: 0 / 0.5162 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.8893, allocations: 61.92 kB / 0.5163 GB, free: 15.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.8893, allocations: 1.156 kB / 0.5163 GB, free: 15.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002465/0.8896, allocations: 64.92 kB / 0.5163 GB, free: 15.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.8896, allocations: 79.95 kB / 0.5164 GB, free: 15.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.883e-05/0.8897, allocations: 90.98 kB / 0.5165 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.8897, allocations: 25.7 kB / 0.5165 GB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.239e-05/0.8897, allocations: 81.36 kB / 0.5166 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.8898, allocations: 6.094 kB / 0.5166 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.8898, allocations: 15.12 kB / 0.5166 GB, free: 15.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.334e-05/0.8899, allocations: 313.8 kB / 0.5169 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.674e-05/0.8899, allocations: 1.094 kB / 0.5169 GB, free: 15.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.186e-05/0.89, allocations: 1.125 kB / 0.5169 GB, free: 15.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.495e-05/0.89, allocations: 69.83 kB / 0.517 GB, free: 15.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.8901, allocations: 1.344 kB / 0.517 GB, free: 15.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001081/0.8902, allocations: 61.39 kB / 0.517 GB, free: 14.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.8902, allocations: 32.89 kB / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.8903, allocations: 3.062 kB / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.8903, allocations: 0 / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.913e-06/0.8903, allocations: 0 / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.8903, allocations: 1.031 kB / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/0.8904, allocations: 6.234 kB / 0.5171 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.8904, allocations: 3.312 kB / 0.5171 GB, free: 14.94 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 9.832e-05/0.8905, allocations: 141 kB / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.874e-05/0.8905, allocations: 5.062 kB / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.562e-05/0.8906, allocations: 4.438 kB / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.8906, allocations: 2.531 kB / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.8906, allocations: 0 / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.8906, allocations: 1.25 kB / 0.5172 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.8907, allocations: 153.3 kB / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.8907, allocations: 3.406 kB / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-06/0.8907, allocations: 1.188 kB / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.8908, allocations: 2.844 kB / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.8908, allocations: 3.672 kB / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.8908, allocations: 0 / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8908, allocations: 0 / 0.5174 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.891, allocations: 99.78 kB / 0.5175 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.891, allocations: 77.11 kB / 0.5176 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.891, allocations: 2.312 kB / 0.5176 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.725e-05/0.8911, allocations: 4.938 kB / 0.5176 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.8911, allocations: 3.438 kB / 0.5176 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.8911, allocations: 1.125 kB / 0.5176 GB, free: 14.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.577e-05/0.8912, allocations: 75.28 kB / 0.5176 GB, free: 14.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8912, allocations: 0 / 0.5176 GB, free: 14.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.03811/0.9293, allocations: 3.778 MB / 0.5213 GB, free: 14.24 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.07956/1.009, allocations: 0.9771 MB / 0.5223 GB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002012/1.009, allocations: 57.88 kB / 0.5223 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.009, allocations: 0 / 0.5223 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.715e-05/1.009, allocations: 54.56 kB / 0.5224 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/1.01, allocations: 7.188 kB / 0.5224 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003065/1.01, allocations: 107 kB / 0.5225 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/1.01, allocations: 0.6731 MB / 0.5232 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.663e-05/1.01, allocations: 10.62 kB / 0.5232 GB, free: 13.07 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/1.01, allocations: 3.25 kB / 0.5232 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Templates: time 0.1931/1.203, allocations: 64.88 MB / 0.5865 GB, free: 3.395 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches