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.001496/0.001496, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 74.08 kB / 419 MB, free: 18.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1171, allocations: 62.44 MB / 481.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001574/0.1187, allocations: 493.4 kB / 481.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.1205, allocations: 1.606 MB / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.143e-05/0.1205, allocations: 0 / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.56e-06/0.1206, allocations: 3.938 kB / 483.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.425e-06/0.1206, allocations: 0 / 483.5 MB, free: 2.395 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.000631/0.1212, allocations: 283.2 kB / 483.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.641e-05/0.1213, allocations: 0 / 483.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.936e-05/0.1213, allocations: 0 / 483.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.163e-05/0.1213, allocations: 0 / 483.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.719e-05/0.1213, allocations: 4 kB / 483.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.619e-06/0.1213, allocations: 0 / 483.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005961/0.1219, allocations: 0.4951 MB / 484.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.122e-06/0.122, allocations: 0 / 484.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.79e-05/0.122, allocations: 0 / 484.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.1224, allocations: 307.4 kB / 484.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1224, allocations: 4 kB / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1224, allocations: 0 / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1224, allocations: 3.938 kB / 484.6 MB, free: 1.309 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.000337/0.1227, allocations: 369.3 kB / 485 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1228, allocations: 12.03 kB / 485 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.1228, allocations: 4.938 kB / 485 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.535e-05/0.1229, allocations: 160.4 kB / 485.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1229, allocations: 384 / 485.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-06/0.1229, allocations: 384 / 485.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.41e-05/0.123, allocations: 34.02 kB / 485.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-06/0.123, allocations: 0 / 485.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.123, allocations: 3.984 kB / 485.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1231, allocations: 0 / 485.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.885e-05/0.1231, allocations: 7.938 kB / 485.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1232, allocations: 153.7 kB / 485.3 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.979e-05/0.1232, allocations: 18.52 kB / 485.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.531e-05/0.1233, allocations: 12.95 kB / 485.4 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.1233, allocations: 0 / 485.4 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.1233, allocations: 60.2 kB / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1233, allocations: 0 / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001435/0.1235, allocations: 71.33 kB / 485.5 MB, free: 240 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.1235, allocations: 81.23 kB / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.022e-05/0.1236, allocations: 89.86 kB / 485.7 MB, free: 40 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.1236, allocations: 25.7 kB / 485.7 MB, free: 8 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.424e-05/0.1236, allocations: 80.14 kB / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.1236, allocations: 4 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.1237, allocations: 13.72 kB / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.1238, allocations: 314.8 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/0.1238, allocations: 4 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-06/0.1238, allocations: 4 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.956e-05/0.1238, allocations: 60.27 kB / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1239, allocations: 0 / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.375e-05/0.1239, allocations: 67.28 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.124, allocations: 43.97 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.124, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/0.124, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.124, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.124, allocations: 96 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.124, allocations: 7.906 kB / 486.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.124, allocations: 4 kB / 486.3 MB, free: 15.37 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 6.267e-05/0.1241, allocations: 131.5 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.1241, allocations: 3.938 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-06/0.1241, allocations: 7.125 kB / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1241, allocations: 0 / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.1241, allocations: 0 / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1242, allocations: 3.984 kB / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.025e-05/0.1242, allocations: 141.7 kB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1242, allocations: 4 kB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.1243, allocations: 0 / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1243, allocations: 7.938 kB / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.1243, allocations: 0 / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1243, allocations: 0 / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1243, allocations: 0 / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.115e-05/0.1244, allocations: 98.75 kB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.1244, allocations: 85.14 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.1244, allocations: 3.938 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.1244, allocations: 0 / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.026e-05/0.1245, allocations: 11.92 kB / 486.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1245, allocations: 0 / 486.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.822e-05/0.1245, allocations: 75.28 kB / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1245, allocations: 0 / 486.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1248, allocations: 60 kB / 486.9 MB, free: 14.64 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.0003836/0.1252, allocations: 193.7 kB / 487.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.441e-05/0.1253, allocations: 67.41 kB / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1253, allocations: 0 / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.464e-05/0.1253, allocations: 55.34 kB / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.1254, allocations: 7.984 kB / 487.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001532/0.1256, allocations: 80.92 kB / 487.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.1258, allocations: 0.669 MB / 488 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.678e-06/0.1258, allocations: 0 / 488 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.919e-06/0.1258, allocations: 11.44 kB / 488 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1258, allocations: 0 / 488 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Templates: time 0.00332/0.1292, allocations: 1.284 MB / 489.3 MB, free: 12.2 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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches