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.001945/0.001945, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002509/0.002509, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.475/2.475, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.365/0.365, allocations: 46.1 MB / 344.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00232/0.002321, allocations: 75.39 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.238, allocations: 62.44 MB / 479.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.004223/0.2423, allocations: 0.5411 MB / 480.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00464/0.247, allocations: 1.613 MB / 482.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.051e-05/0.247, allocations: 3.938 kB / 482.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.336e-05/0.2471, allocations: 0 / 482.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.679e-06/0.2472, allocations: 0 / 482.1 MB, free: 3.562 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.001772/0.249, allocations: 251.5 kB / 482.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.249, allocations: 0 / 482.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.391e-05/0.2491, allocations: 3.938 kB / 482.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.923e-05/0.2492, allocations: 7.984 kB / 482.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.217e-05/0.2492, allocations: 0 / 482.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.2493, allocations: 0 / 482.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.2506, allocations: 499 kB / 482.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.2506, allocations: 0 / 482.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.548e-05/0.2507, allocations: 4 kB / 482.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000616/0.2513, allocations: 207.7 kB / 483 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.2513, allocations: 0 / 483 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2513, allocations: 0 / 483 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2513, allocations: 0 / 483 MB, free: 2.609 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.0006451/0.252, allocations: 377.2 kB / 483.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.716e-05/0.2521, allocations: 12.88 kB / 483.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.881e-05/0.2522, allocations: 0.9375 kB / 483.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.2524, allocations: 160.4 kB / 483.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.2524, allocations: 4.375 kB / 483.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.2524, allocations: 384 / 483.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.2526, allocations: 37.94 kB / 483.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2526, allocations: 0 / 483.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.2526, allocations: 4 kB / 483.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2527, allocations: 3.984 kB / 483.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.034e-05/0.2527, allocations: 0 / 483.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002241/0.2529, allocations: 153.7 kB / 483.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.764e-05/0.253, allocations: 18.61 kB / 483.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.858e-05/0.2531, allocations: 4.859 kB / 483.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-06/0.2531, allocations: 0 / 483.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.243e-05/0.2532, allocations: 68.2 kB / 483.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.2532, allocations: 0 / 483.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002875/0.2535, allocations: 63.39 kB / 483.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.2536, allocations: 85.11 kB / 484 MB, free: 1.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.98e-05/0.2537, allocations: 89.86 kB / 484.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.2537, allocations: 25.7 kB / 484.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.2538, allocations: 80.14 kB / 484.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.2538, allocations: 0 / 484.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-05/0.2539, allocations: 13.72 kB / 484.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.254, allocations: 314.8 kB / 484.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.679e-05/0.2541, allocations: 4.125 kB / 484.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.052e-05/0.2541, allocations: 0 / 484.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.521e-05/0.2542, allocations: 68.2 kB / 484.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2542, allocations: 0 / 484.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001211/0.2543, allocations: 63.39 kB / 484.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/0.2544, allocations: 33.64 kB / 484.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2544, allocations: 7.875 kB / 484.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.2545, allocations: 4 kB / 484.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.434e-06/0.2545, allocations: 96 / 484.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.2545, allocations: 4 kB / 484.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.57e-05/0.2546, allocations: 3.906 kB / 484.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.2546, allocations: 0 / 484.7 MB, free: 0.668 MB / 350.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 0.0001529/0.2548, allocations: 139.5 kB / 484.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.2548, allocations: 3.938 kB / 484.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.926e-05/0.2548, allocations: 7.109 kB / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2548, allocations: 0 / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2549, allocations: 0 / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2549, allocations: 0 / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.255, allocations: 149.7 kB / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/0.2551, allocations: 3.938 kB / 485 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-06/0.2551, allocations: 0 / 485 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.2551, allocations: 3.938 kB / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2551, allocations: 0 / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.2551, allocations: 0 / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2551, allocations: 7.984 kB / 485 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.2553, allocations: 86.84 kB / 485.1 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.2554, allocations: 77.11 kB / 485.2 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2554, allocations: 11.92 kB / 485.2 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.72e-05/0.2555, allocations: 0 / 485.2 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.73e-05/0.2555, allocations: 0 / 485.2 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.2555, allocations: 4 kB / 485.2 MB, free: 80 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.734e-05/0.2556, allocations: 75.28 kB / 485.3 MB, free: 4 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2556, allocations: 0 / 485.3 MB, free: 4 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006503/0.2563, allocations: 68.41 kB / 485.3 MB, free: 15.93 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.0009369/0.2572, allocations: 193.5 kB / 485.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001713/0.2574, allocations: 63.34 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2574, allocations: 3.938 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.668e-05/0.2575, allocations: 59.39 kB / 485.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.2578, allocations: 6.656 kB / 485.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.2581, allocations: 100.5 kB / 485.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.2585, allocations: 0.6731 MB / 486.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.168e-05/0.2586, allocations: 7.438 kB / 486.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.2586, allocations: 128 / 486.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of Templates: time 0.006309/0.2649, allocations: 1.269 MB / 487.7 MB, free: 13.48 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