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.0009377/0.0009376, allocations: 92.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1955/0.1955, allocations: 46.19 MB / 345.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 8 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1132, allocations: 63.55 MB / 483.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0006053/0.1139, allocations: 217.3 kB / 483.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.1161, allocations: 1.597 MB / 485.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.256e-05/0.1161, allocations: 0 / 485.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.354e-05/0.1161, allocations: 7.875 kB / 485.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.1162, allocations: 4 kB / 485.5 MB, free: 2.301 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.0007639/0.1169, allocations: 246.6 kB / 485.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.161e-05/0.117, allocations: 3.938 kB / 485.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.117, allocations: 0 / 485.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.016e-05/0.117, allocations: 4 kB / 485.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.191e-05/0.1171, allocations: 0 / 485.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.1171, allocations: 0 / 485.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007093/0.1178, allocations: 499 kB / 486.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-06/0.1178, allocations: 0 / 486.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.415e-05/0.1179, allocations: 29.69 kB / 486.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1182, allocations: 207.7 kB / 486.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1182, allocations: 0 / 486.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1182, allocations: 0 / 486.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1182, allocations: 0 / 486.5 MB, free: 1.328 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.0003955/0.1186, allocations: 373.2 kB / 486.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1187, allocations: 12.88 kB / 486.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.1187, allocations: 0.9375 kB / 486.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.1188, allocations: 168.3 kB / 487.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1188, allocations: 384 / 487.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.1189, allocations: 384 / 487.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.811e-05/0.119, allocations: 34.02 kB / 487.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-06/0.119, allocations: 0 / 487.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.119, allocations: 0 / 487.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.119, allocations: 4 kB / 487.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.141e-05/0.119, allocations: 4 kB / 487.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001323/0.1192, allocations: 145.7 kB / 487.2 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.935e-05/0.1192, allocations: 18.52 kB / 487.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.1192, allocations: 12.95 kB / 487.3 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.1192, allocations: 0 / 487.3 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.1193, allocations: 64.2 kB / 487.3 MB, free: 344 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1193, allocations: 4 kB / 487.3 MB, free: 340 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001615/0.1195, allocations: 67.38 kB / 487.4 MB, free: 260 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.1195, allocations: 77.11 kB / 487.5 MB, free: 164 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.547e-05/0.1196, allocations: 89.86 kB / 487.6 MB, free: 64 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.1196, allocations: 25.7 kB / 487.6 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.17e-05/0.1196, allocations: 88.14 kB / 487.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.1197, allocations: 3.938 kB / 487.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.183e-05/0.1197, allocations: 9.719 kB / 487.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1198, allocations: 315 kB / 488 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.1198, allocations: 0 / 488 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-06/0.1198, allocations: 7.984 kB / 488 MB, free: 15.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.231e-05/0.1199, allocations: 56.27 kB / 488.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1199, allocations: 0 / 488.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.042e-05/0.12, allocations: 63.41 kB / 488.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.12, allocations: 41.58 kB / 488.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.12, allocations: 0 / 488.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.12, allocations: 12.02 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.1201, allocations: 0 / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1201, allocations: 3.938 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.601e-05/0.1201, allocations: 3.906 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1201, allocations: 0 / 488.2 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 7.707e-05/0.1202, allocations: 135.5 kB / 488.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.757e-06/0.1202, allocations: 3.938 kB / 488.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-06/0.1202, allocations: 3.125 kB / 488.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1202, allocations: 0 / 488.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1202, allocations: 4 kB / 488.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1202, allocations: 7.984 kB / 488.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.12e-05/0.1203, allocations: 149.7 kB / 488.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1203, allocations: 0 / 488.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.1203, allocations: 0 / 488.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1204, allocations: 3.938 kB / 488.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.1204, allocations: 0 / 488.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1204, allocations: 4 kB / 488.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1204, allocations: 0 / 488.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.1205, allocations: 90.83 kB / 488.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.189e-05/0.1205, allocations: 81.11 kB / 488.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.1205, allocations: 3.938 kB / 488.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.172e-05/0.1206, allocations: 0 / 488.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.167e-05/0.1206, allocations: 3.938 kB / 488.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.1206, allocations: 3.984 kB / 488.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.662e-05/0.1206, allocations: 79.28 kB / 488.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1206, allocations: 0 / 488.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000328/0.121, allocations: 56 kB / 488.8 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.0004427/0.1214, allocations: 200.4 kB / 489 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.846e-05/0.1215, allocations: 59.41 kB / 489 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1215, allocations: 0 / 489 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.032e-05/0.1216, allocations: 59.34 kB / 489.1 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.0001219/0.1217, allocations: 4 kB / 489.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002022/0.1219, allocations: 104.5 kB / 489.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.1221, allocations: 0.6731 MB / 489.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.134e-05/0.1221, allocations: 7.562 kB / 489.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1222, allocations: 7.938 kB / 489.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of Templates: time 0.00319/0.1253, allocations: 1.267 MB / 491.2 MB, free: 12.21 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 -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