Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002081/0.002081, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.4 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2211/0.2211, allocations: 46.1 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 77.28 kB / 418.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 62.45 MB / 480.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001744/0.107, allocations: 483.9 kB / 481.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007167/0.1141, allocations: 4.881 MB / 486 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.1142, allocations: 0 / 486 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.1142, allocations: 0 / 486 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.1143, allocations: 0 / 486 MB, free: 15.91 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.006925/0.1212, allocations: 2.931 MB / 489 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.015e-05/0.1213, allocations: 0 / 489 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.85e-05/0.1213, allocations: 12 kB / 489 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.354e-05/0.1213, allocations: 0 / 489 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.585e-05/0.1213, allocations: 3.984 kB / 489 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.113e-06/0.1214, allocations: 0 / 489 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02536/0.1467, allocations: 18.56 MB / 0.4957 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.1468, allocations: 7.984 kB / 0.4957 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.525e-05/0.1468, allocations: 0 / 0.4957 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2479/0.3948, allocations: 27.47 MB / 0.5225 GB, free: 27.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.3948, allocations: 0 / 0.5225 GB, free: 27.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3948, allocations: 0 / 0.5225 GB, free: 27.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.3948, allocations: 0 / 0.5225 GB, free: 27.22 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.01553/0.4104, allocations: 0.6592 MB / 0.5231 GB, free: 26.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.4105, allocations: 10.09 kB / 0.5231 GB, free: 26.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.4105, allocations: 0.9375 kB / 0.5231 GB, free: 26.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.235e-05/0.4106, allocations: 164.1 kB / 0.5233 GB, free: 26.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.4106, allocations: 1.406 kB / 0.5233 GB, free: 26.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.4106, allocations: 2.219 kB / 0.5233 GB, free: 26.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.643e-05/0.4107, allocations: 28.52 kB / 0.5233 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.4107, allocations: 2.781 kB / 0.5233 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.4107, allocations: 0 / 0.5233 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.4108, allocations: 4.031 kB / 0.5233 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.036e-05/0.4108, allocations: 0 / 0.5233 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001095/0.4109, allocations: 156 kB / 0.5235 GB, free: 26.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.109e-05/0.411, allocations: 21.95 kB / 0.5235 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.411, allocations: 4.859 kB / 0.5235 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.411, allocations: 0.7656 kB / 0.5235 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.411, allocations: 60.08 kB / 0.5236 GB, free: 26.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.411, allocations: 1.406 kB / 0.5236 GB, free: 26.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.4112, allocations: 68.91 kB / 0.5236 GB, free: 26.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.4113, allocations: 82.45 kB / 0.5237 GB, free: 25.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.462e-05/0.4113, allocations: 89.86 kB / 0.5238 GB, free: 25.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.856e-06/0.4113, allocations: 28.92 kB / 0.5238 GB, free: 25.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.261e-05/0.4113, allocations: 83.31 kB / 0.5239 GB, free: 25.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.4114, allocations: 9.438 kB / 0.5239 GB, free: 25.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.4114, allocations: 9.719 kB / 0.5239 GB, free: 25.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.204e-05/0.4115, allocations: 321.8 kB / 0.5242 GB, free: 25.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.4115, allocations: 0 / 0.5242 GB, free: 25.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.214e-06/0.4115, allocations: 5.781 kB / 0.5242 GB, free: 25.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.552e-05/0.4115, allocations: 66.14 kB / 0.5243 GB, free: 25.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4115, allocations: 0.8125 kB / 0.5243 GB, free: 25.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.54e-05/0.4116, allocations: 59.94 kB / 0.5244 GB, free: 25.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.4116, allocations: 35.5 kB / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4116, allocations: 3.812 kB / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.4117, allocations: 0 / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.4117, allocations: 3.562 kB / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.4117, allocations: 0.8594 kB / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.4117, allocations: 2.719 kB / 0.5244 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.024e-06/0.4117, allocations: 0 / 0.5244 GB, free: 25.26 MB / 382.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.683e-05/0.4118, allocations: 139.4 kB / 0.5245 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.4118, allocations: 3.188 kB / 0.5245 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.02e-05/0.4118, allocations: 3.125 kB / 0.5245 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.4118, allocations: 1.812 kB / 0.5245 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4118, allocations: 0 / 0.5245 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4118, allocations: 3.984 kB / 0.5246 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.785e-05/0.4119, allocations: 153.4 kB / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4119, allocations: 0 / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4119, allocations: 2.125 kB / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.4119, allocations: 0 / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.4119, allocations: 0 / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.4119, allocations: 0 / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4119, allocations: 3.75 kB / 0.5247 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.763e-05/0.412, allocations: 101.9 kB / 0.5248 GB, free: 24.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.458e-05/0.412, allocations: 78.7 kB / 0.5249 GB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.412, allocations: 0 / 0.5249 GB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.004e-05/0.4121, allocations: 0 / 0.5249 GB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.4121, allocations: 14.38 kB / 0.5249 GB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.4121, allocations: 4 kB / 0.5249 GB, free: 24.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.284e-05/0.4121, allocations: 75.28 kB / 0.525 GB, free: 24.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4121, allocations: 0 / 0.525 GB, free: 24.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01966/0.4318, allocations: 3.775 MB / 0.5287 GB, free: 21.39 MB / 382.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.03758/0.4694, allocations: 0.9716 MB / 0.5296 GB, free: 20.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.4696, allocations: 58.72 kB / 0.5297 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4696, allocations: 4.062 kB / 0.5297 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.477e-05/0.4697, allocations: 55.41 kB / 0.5297 GB, free: 20.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.4699, allocations: 7.938 kB / 0.5297 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000228/0.4701, allocations: 106 kB / 0.5298 GB, free: 20.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.4702, allocations: 0.6729 MB / 0.5305 GB, free: 19.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.45e-05/0.4703, allocations: 11.44 kB / 0.5305 GB, free: 19.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4703, allocations: 0 / 0.5305 GB, free: 19.55 MB / 382.1 MB Notification: Performance of Templates: time 0.09199/0.5623, allocations: 64.89 MB / 0.5939 GB, free: 2.582 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches