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.001305/0.001305, allocations: 96.42 kB / 17 MB, free: 6.414 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.001813/0.001814, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.497/1.497, allocations: 223.3 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2032/0.2032, allocations: 44.25 MB / 337.3 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 409.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.14, allocations: 61.93 MB / 471.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.0005915/0.1407, allocations: 213.2 kB / 471.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.1436, allocations: 1.898 MB / 473.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.031e-06/0.1436, allocations: 3.938 kB / 473.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.047e-06/0.1436, allocations: 0 / 473.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.283e-06/0.1436, allocations: 4 kB / 473.7 MB, free: 11.6 MB / 350.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.001452/0.1451, allocations: 461.3 kB / 474.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 1.511e-05/0.1451, allocations: 0 / 474.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.412e-05/0.1451, allocations: 0 / 474.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.07e-05/0.1452, allocations: 0 / 474.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.053e-05/0.1452, allocations: 3.984 kB / 474.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-06/0.1452, allocations: 8 kB / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001261/0.1465, allocations: 0.8186 MB / 475 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.356e-06/0.1465, allocations: 3.984 kB / 475 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/0.1465, allocations: 25.7 kB / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006257/0.1471, allocations: 0.5381 MB / 475.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1472, allocations: 0 / 475.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.1472, allocations: 0 / 475.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1472, allocations: 3.938 kB / 475.6 MB, free: 9.742 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003495/0.1475, allocations: 379.3 kB / 475.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1476, allocations: 8.562 kB / 475.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.1477, allocations: 75.28 kB / 476 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1478, allocations: 242.3 kB / 476.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.559e-05/0.1479, allocations: 154.6 kB / 476.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.1479, allocations: 158.5 kB / 476.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.318e-05/0.148, allocations: 105 kB / 476.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.148, allocations: 75.28 kB / 476.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.1481, allocations: 150.6 kB / 476.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.927e-05/0.1482, allocations: 150.6 kB / 477 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.191e-05/0.1482, allocations: 154.5 kB / 477.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002727/0.1485, allocations: 450 kB / 477.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.971e-05/0.1486, allocations: 169.1 kB / 477.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.164e-05/0.1486, allocations: 80.14 kB / 477.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1487, allocations: 75.28 kB / 477.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.746e-05/0.1487, allocations: 117.7 kB / 478 MB, free: 7.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.1487, allocations: 4 kB / 478 MB, free: 7.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.813e-05/0.1488, allocations: 33.64 kB / 478.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.1489, allocations: 152.4 kB / 478.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.349e-05/0.149, allocations: 93.86 kB / 478.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.149, allocations: 25.7 kB / 478.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.895e-05/0.149, allocations: 80.14 kB / 478.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-06/0.149, allocations: 0 / 478.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-06/0.149, allocations: 0 / 478.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002571/0.1493, allocations: 318.8 kB / 478.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-06/0.1493, allocations: 0 / 478.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.992e-05/0.1493, allocations: 4 kB / 478.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.404e-05/0.1494, allocations: 75.28 kB / 478.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.492e-05/0.1494, allocations: 75.28 kB / 478.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 0.0001352/0.1495, allocations: 37.61 kB / 478.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.1496, allocations: 83.28 kB / 479 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.988e-05/0.1496, allocations: 79.23 kB / 479.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.764e-05/0.1497, allocations: 158.5 kB / 479.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.527e-05/0.1497, allocations: 75.28 kB / 479.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001136/0.1498, allocations: 162.5 kB / 479.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.466e-05/0.1499, allocations: 79.33 kB / 479.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.15, allocations: 79.27 kB / 479.6 MB, free: 5.43 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.1501, allocations: 264.4 kB / 479.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.9e-05/0.1502, allocations: 104.9 kB / 480 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.218e-05/0.1503, allocations: 108.1 kB / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.328e-05/0.1503, allocations: 184.2 kB / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001704/0.1505, allocations: 184.2 kB / 480.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.069e-05/0.1506, allocations: 176.3 kB / 480.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000471/0.1511, allocations: 401.2 kB / 481 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.427e-05/0.1511, allocations: 101.2 kB / 481.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/0.1512, allocations: 116.9 kB / 481.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.775e-05/0.1512, allocations: 180.3 kB / 481.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-05/0.1513, allocations: 176.3 kB / 481.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-05/0.1514, allocations: 184.2 kB / 481.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001819/0.1516, allocations: 184.2 kB / 481.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002498/0.1518, allocations: 307.8 kB / 482.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.152, allocations: 182.1 kB / 482.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.1522, allocations: 180.2 kB / 482.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.724e-05/0.1523, allocations: 109 kB / 482.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.1525, allocations: 192.1 kB / 482.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.1525, allocations: 101 kB / 483 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.152e-05/0.1525, allocations: 75.28 kB / 483.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1525, allocations: 0 / 483.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006337/0.1532, allocations: 148 kB / 483.2 MB, free: 1.625 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006853/0.1539, allocations: 341.1 kB / 483.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.966e-05/0.1539, allocations: 4 kB / 483.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1539, allocations: 4 kB / 483.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.1539, allocations: 3.938 kB / 483.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.1543, allocations: 0.5185 MB / 484.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001382/0.1544, allocations: 146 kB / 484.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.1548, allocations: 0.6692 MB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.223e-06/0.1548, allocations: 4 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.1548, allocations: 11.44 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1548, allocations: 0 / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of Templates: time 0.007018/0.1618, allocations: 3.419 MB / 488.3 MB, free: 12.46 MB / 366.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