Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.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.TestMatricesExamplesSolveLinearEquations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") translateModel(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001175/0.001175, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2126/0.2126, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3617, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.001718/0.3635, allocations: 0.4928 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002923/0.3664, allocations: 1.978 MB / 0.5213 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.119e-06/0.3664, allocations: 0.9688 kB / 0.5213 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.328e-06/0.3665, allocations: 0 / 0.5213 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.543e-06/0.3665, allocations: 0 / 0.5213 GB, free: 1.918 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/package.mo:697:5-750:29:writable] Warning: Pure function 'Modelica.Math.Matrices.Examples.solveLinearEquations' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3681, allocations: 0.5223 MB / 0.5218 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.011e-05/0.3681, allocations: 5 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.961e-05/0.3681, allocations: 1.953 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.081e-05/0.3682, allocations: 3.984 kB / 0.5218 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.157e-05/0.3682, allocations: 4 kB / 0.5218 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.017e-06/0.3682, allocations: 0 / 0.5218 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.3697, allocations: 0.8823 MB / 0.5227 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.771e-06/0.3697, allocations: 0 / 0.5227 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.399e-05/0.3697, allocations: 1.219 kB / 0.5227 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.3709, allocations: 0.7841 MB / 0.5234 GB, free: 1.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3709, allocations: 1.156 kB / 0.5234 GB, free: 1.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3709, allocations: 0 / 0.5234 GB, free: 1.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.3709, allocations: 0 / 0.5234 GB, free: 1.336 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003506/0.3712, allocations: 376.9 kB / 0.5238 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.3713, allocations: 9.938 kB / 0.5238 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/0.3714, allocations: 76.22 kB / 0.5239 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.027e-05/0.3714, allocations: 242 kB / 0.5241 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.3715, allocations: 150.9 kB / 0.5243 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.3715, allocations: 152.5 kB / 0.5244 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.053e-05/0.3716, allocations: 110.1 kB / 0.5245 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3716, allocations: 79.27 kB / 0.5246 GB, free: 112 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.3717, allocations: 156 kB / 0.5247 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.711e-05/0.3717, allocations: 150.6 kB / 0.5249 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.126e-05/0.3718, allocations: 151.7 kB / 0.525 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003395/0.3722, allocations: 449.3 kB / 0.5255 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.3723, allocations: 165.1 kB / 0.5256 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.231e-05/0.3723, allocations: 81.39 kB / 0.5257 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.654e-05/0.3724, allocations: 79.22 kB / 0.5258 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.974e-05/0.3725, allocations: 115.6 kB / 0.5259 GB, free: 14.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.3725, allocations: 0 / 0.5259 GB, free: 14.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.62e-05/0.3726, allocations: 31.97 kB / 0.5259 GB, free: 14.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3727, allocations: 153.2 kB / 0.526 GB, free: 14.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.28e-05/0.3727, allocations: 91.45 kB / 0.5261 GB, free: 14.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3727, allocations: 25.7 kB / 0.5262 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.3728, allocations: 80.14 kB / 0.5262 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-06/0.3728, allocations: 0 / 0.5262 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.3728, allocations: 12.77 kB / 0.5262 GB, free: 14.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.373, allocations: 315.5 kB / 0.5266 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.37e-06/0.373, allocations: 1.344 kB / 0.5266 GB, free: 13.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.375e-05/0.3731, allocations: 3.938 kB / 0.5266 GB, free: 13.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.914e-05/0.3731, allocations: 77.36 kB / 0.5266 GB, free: 13.9 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-05/0.3732, allocations: 79.22 kB / 0.5267 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.035e-05/0.3733, allocations: 28.62 kB / 0.5267 GB, free: 13.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.3733, allocations: 89.06 kB / 0.5268 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-05/0.3734, allocations: 84.16 kB / 0.5269 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-05/0.3735, allocations: 156.8 kB / 0.527 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.335e-05/0.3735, allocations: 80 kB / 0.5271 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001326/0.3737, allocations: 155.7 kB / 0.5273 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-05/0.3738, allocations: 81.3 kB / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.3738, allocations: 77.17 kB / 0.5274 GB, free: 13.09 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0002343/0.374, allocations: 262.3 kB / 0.5277 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.3741, allocations: 114.4 kB / 0.5278 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.375e-05/0.3742, allocations: 106.2 kB / 0.5279 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-05/0.3743, allocations: 183.3 kB / 0.5281 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001457/0.3744, allocations: 176.9 kB / 0.5282 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.259e-05/0.3745, allocations: 182.5 kB / 0.5284 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.3748, allocations: 404.8 kB / 0.5288 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.695e-05/0.3748, allocations: 101 kB / 0.5289 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.375, allocations: 111 kB / 0.529 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.27e-05/0.375, allocations: 182.3 kB / 0.5292 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.103e-05/0.3751, allocations: 178.2 kB / 0.5293 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.348e-05/0.3752, allocations: 185.5 kB / 0.5295 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.442e-05/0.3753, allocations: 182.4 kB / 0.5297 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.3755, allocations: 300.6 kB / 0.53 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.712e-05/0.3756, allocations: 192.1 kB / 0.5302 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.3757, allocations: 189.3 kB / 0.5303 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.3758, allocations: 102.5 kB / 0.5304 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.3759, allocations: 181.6 kB / 0.5306 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/0.3759, allocations: 101 kB / 0.5307 GB, free: 9.539 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.009e-05/0.376, allocations: 76.59 kB / 0.5308 GB, free: 9.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.376, allocations: 0 / 0.5308 GB, free: 9.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000836/0.3768, allocations: 150.8 kB / 0.5309 GB, free: 9.43 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0007387/0.3776, allocations: 341.9 kB / 0.5312 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.352e-05/0.3776, allocations: 9.75 kB / 0.5313 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3777, allocations: 0 / 0.5313 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.835e-06/0.3777, allocations: 1.875 kB / 0.5313 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/0.3781, allocations: 456.1 kB / 0.5317 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.3783, allocations: 148.3 kB / 0.5318 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3786, allocations: 0.6727 MB / 0.5325 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.076e-05/0.3786, allocations: 6.031 kB / 0.5325 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3787, allocations: 11.42 kB / 0.5325 GB, free: 7.852 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3787, allocations: 0 / 0.5325 GB, free: 7.852 MB / 398.1 MB Notification: Performance of Templates: time 0.007157/0.3858, allocations: 3.396 MB / 0.5358 GB, free: 6.105 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatricesExamplesSolveLinearEquations/TestMatricesExamplesSolveLinearEquations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches