Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001556/0.001556, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001931/0.001931, allocations: 207.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2329/0.2329, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 79.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4106, allocations: 62.43 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.001418/0.412, allocations: 491.9 kB / 0.5314 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.415, allocations: 2.04 MB / 0.5334 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.799e-06/0.415, allocations: 0 / 0.5334 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.516e-06/0.415, allocations: 0 / 0.5334 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.302e-06/0.415, allocations: 0 / 0.5334 GB, free: 11.86 MB / 398.1 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.001657/0.4167, allocations: 0.5126 MB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 1.953e-05/0.4167, allocations: 0.9375 kB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.131e-05/0.4168, allocations: 1 kB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.275e-05/0.4168, allocations: 3.984 kB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.001e-05/0.4168, allocations: 4.875 kB / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.408e-06/0.4168, allocations: 0 / 0.5339 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.4182, allocations: 0.9014 MB / 0.5348 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-06/0.4182, allocations: 0 / 0.5348 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.555e-05/0.4182, allocations: 1 kB / 0.5348 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009754/0.4192, allocations: 0.7889 MB / 0.5356 GB, free: 10.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.4192, allocations: 5.5 kB / 0.5356 GB, free: 10.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4192, allocations: 0 / 0.5356 GB, free: 10.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.4192, allocations: 0 / 0.5356 GB, free: 10.63 MB / 398.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.0005056/0.4197, allocations: 376.7 kB / 0.536 GB, free: 10.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4198, allocations: 9.75 kB / 0.536 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.056e-05/0.4199, allocations: 80.22 kB / 0.536 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.42, allocations: 239.6 kB / 0.5363 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.4201, allocations: 152.1 kB / 0.5364 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.311e-05/0.4202, allocations: 154.9 kB / 0.5366 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.991e-05/0.4203, allocations: 114.4 kB / 0.5367 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.4203, allocations: 75.28 kB / 0.5367 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.4204, allocations: 151.6 kB / 0.5369 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.524e-05/0.4204, allocations: 154.6 kB / 0.537 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.808e-05/0.4205, allocations: 151.7 kB / 0.5372 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003087/0.4208, allocations: 443.1 kB / 0.5376 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.421, allocations: 170.1 kB / 0.5378 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.993e-05/0.421, allocations: 84.14 kB / 0.5378 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.4211, allocations: 75.28 kB / 0.5379 GB, free: 8.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.82e-05/0.4211, allocations: 114.8 kB / 0.538 GB, free: 8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.262e-06/0.4211, allocations: 1.094 kB / 0.538 GB, free: 8 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.842e-05/0.4212, allocations: 30.62 kB / 0.5381 GB, free: 7.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.4213, allocations: 156.3 kB / 0.5382 GB, free: 7.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.943e-05/0.4214, allocations: 94.95 kB / 0.5383 GB, free: 7.691 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.4214, allocations: 25.7 kB / 0.5383 GB, free: 7.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.4215, allocations: 80.14 kB / 0.5384 GB, free: 7.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-06/0.4215, allocations: 1.062 kB / 0.5384 GB, free: 7.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/0.4215, allocations: 14.84 kB / 0.5384 GB, free: 7.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4217, allocations: 316 kB / 0.5387 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.891e-06/0.4217, allocations: 0 / 0.5387 GB, free: 7.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.265e-05/0.4217, allocations: 1.125 kB / 0.5387 GB, free: 7.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.555e-05/0.4217, allocations: 75.28 kB / 0.5388 GB, free: 7.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.164e-05/0.4218, allocations: 76.44 kB / 0.5389 GB, free: 7.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.5e-05/0.4219, allocations: 31.97 kB / 0.5389 GB, free: 7.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.4219, allocations: 84.5 kB / 0.539 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.652e-05/0.422, allocations: 88.36 kB / 0.5391 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.154e-05/0.422, allocations: 150.6 kB / 0.5392 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.927e-05/0.4221, allocations: 80.3 kB / 0.5393 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.592e-05/0.4222, allocations: 155.6 kB / 0.5394 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.999e-05/0.4222, allocations: 76.41 kB / 0.5395 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.4223, allocations: 84.22 kB / 0.5396 GB, free: 6.359 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.0001494/0.4224, allocations: 266.6 kB / 0.5398 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/0.4225, allocations: 106 kB / 0.5399 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.53e-05/0.4226, allocations: 116.8 kB / 0.54 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.776e-05/0.4227, allocations: 177.4 kB / 0.5402 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.311e-05/0.4228, allocations: 181.4 kB / 0.5404 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.98e-05/0.4229, allocations: 188.2 kB / 0.5406 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.4231, allocations: 395.3 kB / 0.5409 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.534e-05/0.4232, allocations: 105.9 kB / 0.541 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.985e-05/0.4232, allocations: 106 kB / 0.5411 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.672e-05/0.4233, allocations: 184.2 kB / 0.5413 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.464e-05/0.4234, allocations: 185.3 kB / 0.5415 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.711e-05/0.4235, allocations: 181.4 kB / 0.5417 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.594e-05/0.4236, allocations: 185.3 kB / 0.5419 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.4238, allocations: 312.1 kB / 0.5421 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.758e-05/0.4239, allocations: 178.1 kB / 0.5423 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.424, allocations: 186.4 kB / 0.5425 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.793e-05/0.4241, allocations: 106.4 kB / 0.5426 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/0.4242, allocations: 176.3 kB / 0.5428 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.4243, allocations: 114.3 kB / 0.5429 GB, free: 2.785 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.869e-05/0.4244, allocations: 75.28 kB / 0.5429 GB, free: 2.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4244, allocations: 0 / 0.5429 GB, free: 2.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008836/0.4252, allocations: 147.1 kB / 0.5431 GB, free: 2.68 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.0008736/0.4261, allocations: 327 kB / 0.5434 GB, free: 2.445 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.947e-05/0.4262, allocations: 5.219 kB / 0.5434 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4262, allocations: 5.281 kB / 0.5434 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.303e-06/0.4262, allocations: 0 / 0.5434 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.4267, allocations: 457.9 kB / 0.5438 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000195/0.4269, allocations: 154 kB / 0.544 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.4272, allocations: 0.6729 MB / 0.5446 GB, free: 1.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.052e-05/0.4272, allocations: 1.312 kB / 0.5446 GB, free: 1.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.483e-05/0.4272, allocations: 8.656 kB / 0.5447 GB, free: 1.109 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4273, allocations: 0 / 0.5447 GB, free: 1.109 MB / 398.1 MB Notification: Performance of Templates: time 0.007718/0.435, allocations: 3.396 MB / 0.548 GB, free: 15.36 MB / 414.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches