Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") translateModel(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.6 MB / 243.1 MB, free: 14.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007513/0.0007513, allocations: 97.25 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1798/0.1798, allocations: 44.84 MB / 392 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 4 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09973, allocations: 62.95 MB / 0.5153 GB, free: 2.773 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.000455/0.1002, allocations: 216.6 kB / 0.5155 GB, free: 2.559 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.1026, allocations: 1.936 MB / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.007e-06/0.1027, allocations: 0 / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.256e-06/0.1027, allocations: 0 / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.042e-06/0.1027, allocations: 0 / 0.5174 GB, free: 0.6055 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001274/0.104, allocations: 467 kB / 0.5179 GB, free: 160 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 1.487e-05/0.104, allocations: 4 kB / 0.5179 GB, free: 156 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.547e-05/0.104, allocations: 0 / 0.5179 GB, free: 156 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.366e-06/0.104, allocations: 0 / 0.5179 GB, free: 156 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.257e-05/0.104, allocations: 0 / 0.5179 GB, free: 156 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.596e-06/0.1041, allocations: 0 / 0.5179 GB, free: 156 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1846/0.2886, allocations: 0.8204 MB / 0.5187 GB, free: 9.957 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-06/0.2887, allocations: 1.719 kB / 0.5187 GB, free: 9.957 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.2887, allocations: 29.3 kB / 0.5187 GB, free: 9.926 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007954/0.2895, allocations: 0.5393 MB / 0.5192 GB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2895, allocations: 0 / 0.5192 GB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2895, allocations: 1.062 kB / 0.5192 GB, free: 9.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.818e-06/0.2895, allocations: 0 / 0.5192 GB, free: 9.926 MB / 346.7 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.0002848/0.2898, allocations: 376.6 kB / 0.5196 GB, free: 9.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2898, allocations: 9.562 kB / 0.5196 GB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.2899, allocations: 81.78 kB / 0.5197 GB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.072e-05/0.2899, allocations: 242.1 kB / 0.5199 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.29, allocations: 152 kB / 0.52 GB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.29, allocations: 156.8 kB / 0.5202 GB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.525e-05/0.2901, allocations: 101.9 kB / 0.5203 GB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.2901, allocations: 77.95 kB / 0.5204 GB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.2901, allocations: 154.8 kB / 0.5205 GB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.2901, allocations: 150.6 kB / 0.5207 GB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.204e-05/0.2902, allocations: 155.3 kB / 0.5208 GB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.2903, allocations: 446 kB / 0.5212 GB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.866e-05/0.2904, allocations: 174.4 kB / 0.5214 GB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.638e-05/0.2904, allocations: 80.95 kB / 0.5215 GB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.2904, allocations: 76.34 kB / 0.5215 GB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.2905, allocations: 111.1 kB / 0.5217 GB, free: 7.355 MB / 346.7 MB Notification: Performance of pre-optimization done (n=0): time 8.21e-07/0.2905, allocations: 0 / 0.5217 GB, free: 7.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=0): time 6.166e-05/0.2905, allocations: 30.88 kB / 0.5217 GB, free: 7.324 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.2906, allocations: 153.7 kB / 0.5218 GB, free: 7.156 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.57e-05/0.2906, allocations: 90.89 kB / 0.5219 GB, free: 7.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.2906, allocations: 26.27 kB / 0.5219 GB, free: 7.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.291e-05/0.2906, allocations: 85.91 kB / 0.522 GB, free: 6.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-06/0.2906, allocations: 0 / 0.522 GB, free: 6.941 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-07/0.2906, allocations: 0 / 0.522 GB, free: 6.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.283e-05/0.2907, allocations: 313.2 kB / 0.5223 GB, free: 6.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.086e-06/0.2907, allocations: 0 / 0.5223 GB, free: 6.629 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.008e-05/0.2907, allocations: 2.141 kB / 0.5223 GB, free: 6.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.138e-05/0.2907, allocations: 75.84 kB / 0.5224 GB, free: 6.555 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.2908, allocations: 80.52 kB / 0.5225 GB, free: 6.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.204e-05/0.2908, allocations: 37.66 kB / 0.5225 GB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2908, allocations: 80.53 kB / 0.5226 GB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.2909, allocations: 79.36 kB / 0.5227 GB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/0.2909, allocations: 156.4 kB / 0.5228 GB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.158e-05/0.2909, allocations: 78.92 kB / 0.5229 GB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.193e-05/0.2909, allocations: 157 kB / 0.523 GB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.444e-05/0.291, allocations: 76.25 kB / 0.5231 GB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.291, allocations: 89.27 kB / 0.5232 GB, free: 5.766 MB / 346.7 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 6.191e-05/0.2911, allocations: 260.4 kB / 0.5234 GB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.2911, allocations: 107.5 kB / 0.5235 GB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.2911, allocations: 109.7 kB / 0.5236 GB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.2912, allocations: 178.9 kB / 0.5238 GB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.607e-05/0.2912, allocations: 186.6 kB / 0.524 GB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.561e-05/0.2912, allocations: 180 kB / 0.5242 GB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.2914, allocations: 401.7 kB / 0.5246 GB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/0.2914, allocations: 106.7 kB / 0.5247 GB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.552e-05/0.2914, allocations: 104.3 kB / 0.5248 GB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.419e-05/0.2914, allocations: 189.7 kB / 0.5249 GB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.2915, allocations: 181 kB / 0.5251 GB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.3e-05/0.2915, allocations: 182.1 kB / 0.5253 GB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.363e-05/0.2915, allocations: 178.8 kB / 0.5255 GB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.305e-05/0.2916, allocations: 307.2 kB / 0.5257 GB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.2916, allocations: 185.9 kB / 0.5259 GB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.2917, allocations: 182.7 kB / 0.5261 GB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.293e-05/0.2917, allocations: 104.3 kB / 0.5262 GB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.2918, allocations: 184.7 kB / 0.5264 GB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2918, allocations: 102.7 kB / 0.5265 GB, free: 2.277 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.603e-05/0.2918, allocations: 80.25 kB / 0.5265 GB, free: 2.199 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2918, allocations: 0 / 0.5265 GB, free: 2.199 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007051/0.2925, allocations: 144.5 kB / 0.5267 GB, free: 2.18 MB / 346.7 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.0006675/0.2932, allocations: 343 kB / 0.527 GB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 3.79e-05/0.2932, allocations: 3.625 kB / 0.527 GB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2932, allocations: 0.875 kB / 0.527 GB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.2932, allocations: 0 / 0.527 GB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.2935, allocations: 0.52 MB / 0.5275 GB, free: 1.469 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001013/0.2936, allocations: 180.5 kB / 0.5277 GB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.321e-05/0.2937, allocations: 0.6706 MB / 0.5284 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.574e-06/0.2937, allocations: 8.406 kB / 0.5284 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2937, allocations: 0 / 0.5284 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of Templates: time 0.005449/0.2992, allocations: 2.927 MB / 0.5312 GB, free: 340 kB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches