Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001192, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2038/0.2038, allocations: 46.09 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 79.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1107, allocations: 62.45 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001785/0.1125, allocations: 482.9 kB / 481.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.1145, allocations: 1.61 MB / 483.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.288e-05/0.1145, allocations: 0 / 483.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.35e-05/0.1145, allocations: 7.938 kB / 483.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.709e-06/0.1146, allocations: 0 / 483.6 MB, free: 2.41 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.1153, allocations: 270.5 kB / 483.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.09e-05/0.1154, allocations: 4 kB / 483.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.1154, allocations: 8 kB / 483.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.298e-05/0.1154, allocations: 0 / 483.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.692e-05/0.1154, allocations: 0 / 483.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-06/0.1154, allocations: 3.984 kB / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006059/0.1161, allocations: 0.4912 MB / 484.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-06/0.1161, allocations: 0 / 484.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.682e-05/0.1161, allocations: 3.938 kB / 484.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005216/0.1166, allocations: 307.4 kB / 484.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1166, allocations: 4 kB / 484.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1166, allocations: 0 / 484.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1167, allocations: 0 / 484.6 MB, free: 1.332 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004286/0.1171, allocations: 373.3 kB / 485 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.1171, allocations: 8.031 kB / 485 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.718e-05/0.1172, allocations: 0.9375 kB / 485 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.813e-05/0.1172, allocations: 160.4 kB / 485.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.1173, allocations: 384 / 485.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.1173, allocations: 4.375 kB / 485.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.977e-05/0.1174, allocations: 42 kB / 485.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-06/0.1174, allocations: 3.938 kB / 485.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.1174, allocations: 0 / 485.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.1174, allocations: 4 kB / 485.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.514e-05/0.1174, allocations: 0 / 485.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.1176, allocations: 145.7 kB / 485.4 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.989e-05/0.1176, allocations: 18.61 kB / 485.4 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.1176, allocations: 8.859 kB / 485.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-06/0.1176, allocations: 0 / 485.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.1177, allocations: 64.19 kB / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.425e-06/0.1177, allocations: 8 kB / 485.5 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.1178, allocations: 63.34 kB / 485.5 MB, free: 268 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.1179, allocations: 81.11 kB / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.708e-05/0.1179, allocations: 89.86 kB / 485.7 MB, free: 68 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.1179, allocations: 25.7 kB / 485.7 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.351e-05/0.118, allocations: 84.27 kB / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.118, allocations: 3.984 kB / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.118, allocations: 17.7 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.1181, allocations: 310.8 kB / 486.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.1182, allocations: 7.938 kB / 486.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.739e-06/0.1182, allocations: 0 / 486.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.34e-05/0.1182, allocations: 64.2 kB / 486.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1182, allocations: 4.062 kB / 486.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.103e-05/0.1183, allocations: 67.38 kB / 486.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.1183, allocations: 33.64 kB / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1183, allocations: 0 / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.1184, allocations: 4 kB / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1184, allocations: 0 / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1184, allocations: 0 / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.1184, allocations: 3.906 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.1184, allocations: 0 / 486.3 MB, free: 15.39 MB / 366.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 8.127e-05/0.1185, allocations: 143.6 kB / 486.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-06/0.1185, allocations: 3.938 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.929e-06/0.1185, allocations: 7.109 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.1185, allocations: 0 / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1185, allocations: 0 / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1185, allocations: 0 / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.531e-05/0.1186, allocations: 145.7 kB / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1186, allocations: 0 / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1186, allocations: 0 / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.1187, allocations: 3.938 kB / 486.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.1187, allocations: 7.922 kB / 486.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1187, allocations: 4 kB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1187, allocations: 4 kB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.829e-05/0.1188, allocations: 82.84 kB / 486.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.1188, allocations: 81.09 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.1188, allocations: 11.88 kB / 486.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.148e-06/0.1188, allocations: 4 kB / 486.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.187e-05/0.1189, allocations: 0 / 486.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.1189, allocations: 4.031 kB / 486.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.943e-05/0.1189, allocations: 75.28 kB / 486.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1189, allocations: 0 / 486.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.1192, allocations: 67.98 kB / 486.9 MB, free: 14.66 MB / 366.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.0003862/0.1196, allocations: 189.1 kB / 487.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.082e-05/0.1196, allocations: 59.34 kB / 487.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1197, allocations: 0 / 487.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.928e-05/0.1197, allocations: 59.41 kB / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.1198, allocations: 14.3 kB / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001463/0.12, allocations: 72.94 kB / 487.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.1202, allocations: 0.6729 MB / 488 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.1202, allocations: 0 / 488 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.313e-06/0.1202, allocations: 7.438 kB / 488 MB, free: 13.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1202, allocations: 0 / 488 MB, free: 13.51 MB / 366.1 MB Notification: Performance of Templates: time 0.003394/0.1236, allocations: 1.286 MB / 489.3 MB, free: 12.23 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches