Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") translateModel(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008972/0.0008972, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 229.5 MB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000784/0.000784, allocations: 100.9 kB / 299.9 MB, free: 5.383 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3069/0.3069, allocations: 45 MB / 397 MB, free: 31.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002977, allocations: 8 kB / 470.8 MB, free: 7.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.295, allocations: 63.1 MB / 0.5214 GB, free: 38.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.000557/0.2956, allocations: 215.3 kB / 0.5216 GB, free: 38.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.2983, allocations: 2.718 MB / 0.5242 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-06/0.2983, allocations: 3.938 kB / 0.5242 GB, free: 36.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.586e-06/0.2983, allocations: 0 / 0.5242 GB, free: 36.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.176e-06/0.2984, allocations: 0 / 0.5242 GB, free: 36.09 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.001301/0.2997, allocations: 474.6 kB / 0.5247 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 1.507e-05/0.2997, allocations: 3.984 kB / 0.5247 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.612e-05/0.2997, allocations: 0 / 0.5247 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.647e-06/0.2997, allocations: 3.938 kB / 0.5247 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.25e-05/0.2998, allocations: 4 kB / 0.5247 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-06/0.2998, allocations: 0 / 0.5247 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009871/0.3008, allocations: 0.8312 MB / 0.5255 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.3008, allocations: 0 / 0.5255 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.3008, allocations: 25.7 kB / 0.5255 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007265/0.3015, allocations: 0.782 MB / 0.5263 GB, free: 35.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3015, allocations: 0 / 0.5263 GB, free: 35.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3016, allocations: 0 / 0.5263 GB, free: 35.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.3016, allocations: 0 / 0.5263 GB, free: 35.54 MB / 378.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.0002475/0.3018, allocations: 377.9 kB / 0.5267 GB, free: 35.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3019, allocations: 8.594 kB / 0.5267 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.3019, allocations: 83.19 kB / 0.5267 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.324e-05/0.302, allocations: 235.7 kB / 0.527 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.302, allocations: 150.9 kB / 0.5271 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.302, allocations: 153.7 kB / 0.5273 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.029e-05/0.3021, allocations: 113.2 kB / 0.5274 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3021, allocations: 79.28 kB / 0.5274 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.3021, allocations: 153.4 kB / 0.5276 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.3022, allocations: 150.6 kB / 0.5277 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.822e-05/0.3022, allocations: 150.6 kB / 0.5279 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.3023, allocations: 446 kB / 0.5283 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.928e-05/0.3024, allocations: 178.8 kB / 0.5285 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.3024, allocations: 80.14 kB / 0.5285 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.3024, allocations: 75.28 kB / 0.5286 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.3025, allocations: 117.8 kB / 0.5287 GB, free: 32.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 8.81e-07/0.3025, allocations: 0 / 0.5287 GB, free: 32.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.305e-05/0.3026, allocations: 28.45 kB / 0.5288 GB, free: 32.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.3026, allocations: 152.4 kB / 0.5289 GB, free: 32.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.812e-05/0.3026, allocations: 93.8 kB / 0.529 GB, free: 32.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-06/0.3026, allocations: 25.7 kB / 0.529 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.891e-05/0.3027, allocations: 83.23 kB / 0.5291 GB, free: 32.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.3027, allocations: 0 / 0.5291 GB, free: 32.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-07/0.3027, allocations: 0 / 0.5291 GB, free: 32.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.555e-05/0.3027, allocations: 318.1 kB / 0.5294 GB, free: 32.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.446e-06/0.3027, allocations: 0 / 0.5294 GB, free: 32.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.76e-05/0.3028, allocations: 0 / 0.5294 GB, free: 32.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.533e-05/0.3028, allocations: 79.22 kB / 0.5295 GB, free: 32.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.3028, allocations: 78.09 kB / 0.5295 GB, free: 32.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.836e-05/0.3028, allocations: 25.7 kB / 0.5296 GB, free: 32.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3029, allocations: 84.38 kB / 0.5297 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.3029, allocations: 89.84 kB / 0.5297 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/0.3029, allocations: 161.7 kB / 0.5299 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.194e-05/0.3029, allocations: 75.28 kB / 0.53 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/0.303, allocations: 157.1 kB / 0.5301 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.527e-05/0.303, allocations: 75.28 kB / 0.5302 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.303, allocations: 82.22 kB / 0.5303 GB, free: 31.31 MB / 378.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.666e-05/0.3031, allocations: 264.4 kB / 0.5305 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.3031, allocations: 111 kB / 0.5306 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.128e-05/0.3032, allocations: 108 kB / 0.5307 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/0.3032, allocations: 176.3 kB / 0.5309 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/0.3032, allocations: 183.2 kB / 0.5311 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.611e-05/0.3033, allocations: 187.6 kB / 0.5312 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.3034, allocations: 397.2 kB / 0.5316 GB, free: 29.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.3034, allocations: 107.7 kB / 0.5317 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.457e-05/0.3034, allocations: 104.3 kB / 0.5318 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.286e-05/0.3034, allocations: 180.2 kB / 0.532 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.3035, allocations: 183.4 kB / 0.5322 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.116e-05/0.3035, allocations: 180.3 kB / 0.5323 GB, free: 29.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.47e-05/0.3035, allocations: 188.2 kB / 0.5325 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.88e-05/0.3036, allocations: 301.2 kB / 0.5328 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.868e-05/0.3036, allocations: 182 kB / 0.533 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3037, allocations: 191.5 kB / 0.5332 GB, free: 28.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.03e-05/0.3037, allocations: 107.9 kB / 0.5333 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.779e-05/0.3038, allocations: 176.3 kB / 0.5334 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.3038, allocations: 103.8 kB / 0.5335 GB, free: 27.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.535e-05/0.3038, allocations: 75.28 kB / 0.5336 GB, free: 27.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3038, allocations: 3.938 kB / 0.5336 GB, free: 27.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000462/0.3043, allocations: 147 kB / 0.5338 GB, free: 27.66 MB / 378.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 (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.0006138/0.3049, allocations: 351.8 kB / 0.5341 GB, free: 27.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.304e-05/0.3049, allocations: 7.094 kB / 0.5341 GB, free: 27.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.305, allocations: 0 / 0.5341 GB, free: 27.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.114e-06/0.305, allocations: 4 kB / 0.5341 GB, free: 27.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.3052, allocations: 0.5177 MB / 0.5346 GB, free: 26.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.884e-05/0.3053, allocations: 145.1 kB / 0.5347 GB, free: 26.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.3054, allocations: 0.6762 MB / 0.5354 GB, free: 26.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.504e-06/0.3054, allocations: 4 kB / 0.5354 GB, free: 26.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.614e-06/0.3054, allocations: 13.5 kB / 0.5354 GB, free: 26.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3054, allocations: 0 / 0.5354 GB, free: 26.04 MB / 378.7 MB Notification: Performance of Templates: time 0.006142/0.3116, allocations: 3.378 MB / 0.5387 GB, free: 25.82 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches