Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 111.6 kB / 17.98 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 189.3 kB / 18.9 MB, free: 4.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2071/0.2071, allocations: 44.17 MB / 336.9 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 68.22 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 60.82 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001669/0.1077, allocations: 0.5528 MB / 469.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1095, allocations: 1.552 MB / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.437e-05/0.1096, allocations: 0 / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.009e-05/0.1096, allocations: 0 / 471.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.1096, allocations: 0 / 471.5 MB, free: 12.62 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0007969/0.1104, allocations: 263.4 kB / 471.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.577e-05/0.1105, allocations: 7.938 kB / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.115e-05/0.1105, allocations: 0 / 471.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.812e-05/0.1106, allocations: 7.984 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.061e-05/0.1106, allocations: 0 / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.1106, allocations: 0 / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005928/0.1112, allocations: 495 kB / 472.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.1112, allocations: 0 / 472.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.1112, allocations: 7.938 kB / 472.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.1115, allocations: 203.7 kB / 472.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1115, allocations: 0 / 472.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1115, allocations: 0 / 472.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1115, allocations: 0 / 472.4 MB, free: 11.65 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.0003726/0.1119, allocations: 381.2 kB / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.112, allocations: 12.03 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.112, allocations: 4.875 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.022e-05/0.1121, allocations: 160.4 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1121, allocations: 384 / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.1121, allocations: 4.375 kB / 473 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.925e-05/0.1122, allocations: 33.95 kB / 473 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1122, allocations: 0 / 473 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-06/0.1122, allocations: 0 / 473 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1122, allocations: 0 / 473 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.877e-05/0.1123, allocations: 11.98 kB / 473 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.1124, allocations: 145.7 kB / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.58e-05/0.1124, allocations: 18.61 kB / 473.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.1124, allocations: 4.859 kB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-06/0.1125, allocations: 3.938 kB / 473.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.1125, allocations: 60.2 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1125, allocations: 0 / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.1127, allocations: 71.45 kB / 473.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1127, allocations: 77.11 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.832e-05/0.1128, allocations: 93.86 kB / 473.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.1128, allocations: 25.7 kB / 473.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.497e-05/0.1128, allocations: 80.14 kB / 473.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.1128, allocations: 0 / 473.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.1129, allocations: 9.719 kB / 473.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.113, allocations: 323 kB / 473.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.756e-06/0.113, allocations: 4 kB / 473.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-06/0.113, allocations: 3.938 kB / 473.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.267e-05/0.1131, allocations: 60.27 kB / 474 MB, free: 9.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1131, allocations: 0 / 474 MB, free: 9.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.279e-05/0.1131, allocations: 63.31 kB / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.1132, allocations: 37.62 kB / 474.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1132, allocations: 0 / 474.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1132, allocations: 0 / 474.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1132, allocations: 4.094 kB / 474.1 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1132, allocations: 4 kB / 474.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1132, allocations: 0 / 474.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.1132, allocations: 0 / 474.1 MB, free: 9.719 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.397e-05/0.1133, allocations: 143.5 kB / 474.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.1133, allocations: 7.875 kB / 474.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.606e-06/0.1134, allocations: 7.062 kB / 474.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1134, allocations: 3.984 kB / 474.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1134, allocations: 0 / 474.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1134, allocations: 4 kB / 474.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.39e-05/0.1135, allocations: 145.7 kB / 474.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1135, allocations: 0 / 474.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1135, allocations: 0 / 474.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1135, allocations: 3.938 kB / 474.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.1135, allocations: 0 / 474.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1135, allocations: 4 kB / 474.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1135, allocations: 0 / 474.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.979e-05/0.1136, allocations: 94.83 kB / 474.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/0.1136, allocations: 77.11 kB / 474.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.1137, allocations: 11.92 kB / 474.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-06/0.1137, allocations: 0 / 474.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.1137, allocations: 3.984 kB / 474.6 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.1137, allocations: 0 / 474.6 MB, free: 9.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.384e-05/0.1137, allocations: 79.28 kB / 474.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.342e-06/0.1137, allocations: 0 / 474.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.114, allocations: 67.92 kB / 474.7 MB, free: 8.969 MB / 350.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.0004163/0.1144, allocations: 189.7 kB / 474.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.537e-05/0.1145, allocations: 59.41 kB / 475 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1146, allocations: 0 / 475 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.695e-05/0.1146, allocations: 55.41 kB / 475 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1147, allocations: 7.984 kB / 475 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001814/0.1149, allocations: 98.58 kB / 475.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.1151, allocations: 0.6729 MB / 475.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.026e-05/0.1151, allocations: 7.438 kB / 475.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of SimCode: time 1.603e-06/0.1151, allocations: 4.125 kB / 475.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of Templates: time 0.002784/0.1179, allocations: 1.28 MB / 477.1 MB, free: 6.52 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches