Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 191.6 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007236/0.0007236, allocations: 103.6 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001955/0.0001955, allocations: 4 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1941, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01817/0.2123, allocations: 28.05 MB / 436.1 MB, free: 15.6 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.2301, allocations: 14.32 MB / 450.4 MB, free: 1.262 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001925/0.2321, allocations: 59.5 kB / 450.5 MB, free: 1.203 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.234, allocations: 0.4969 MB / 451 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006477/0.2405, allocations: 2.255 MB / 453.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007762/0.2483, allocations: 2.931 MB / 456.2 MB, free: 11.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005776/0.2541, allocations: 5.059 MB / 461.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.2559, allocations: 1.01 MB / 462.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.2586, allocations: 1.358 MB / 463.6 MB, free: 4.035 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002606/0.2612, allocations: 1.589 MB / 465.2 MB, free: 2.441 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005065/0.2617, allocations: 84 kB / 465.2 MB, free: 2.359 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004592/0.2663, allocations: 2.273 MB / 467.5 MB, free: 84 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009175/0.2672, allocations: 0.5258 MB / 468 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001648/0.2689, allocations: 0.7834 MB / 468.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004097/0.273, allocations: 2.658 MB / 471.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.273, allocations: 0 / 471.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.273, allocations: 0 / 471.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.69e-05/0.2731, allocations: 0 / 471.5 MB, free: 12.1 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004586/0.2777, allocations: 1.904 MB / 473.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2777, allocations: 8.031 kB / 473.4 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005793/0.2783, allocations: 170.1 kB / 473.6 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.2802, allocations: 0.995 MB / 474.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.2804, allocations: 179 kB / 474.7 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003597/0.2808, allocations: 99.97 kB / 474.8 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.2837, allocations: 1.749 MB / 476.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.837e-05/0.2837, allocations: 3.906 kB / 476.6 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.2839, allocations: 47.95 kB / 476.6 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.284, allocations: 113.9 kB / 476.7 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002729/0.2867, allocations: 1.78 MB / 478.5 MB, free: 4.879 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/0.2983, allocations: 6.738 MB / 485.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3002, allocations: 1.238 MB / 486.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.3014, allocations: 0.7573 MB / 487.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005835/0.3072, allocations: 4.298 MB / 491.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.3073, allocations: 43.56 kB / 491.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008456/0.3081, allocations: 206.7 kB / 491.8 MB, free: 6.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 4.398e-06/0.3082, allocations: 0 / 491.8 MB, free: 6.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01764/0.3258, allocations: 5.747 MB / 497.5 MB, free: 1.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.3259, allocations: 141.5 kB / 497.7 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/0.3277, allocations: 1.238 MB / 498.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.3279, allocations: 53.64 kB / 499 MB, free: 15.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004568/0.3283, allocations: 0.6208 MB / 499.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003428/0.3287, allocations: 382.5 kB / 500 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3288, allocations: 28 kB / 500 MB, free: 14.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.329, allocations: 361.9 kB / 0.4886 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.3301, allocations: 0.6987 MB / 0.4893 GB, free: 13.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.3315, allocations: 1.04 MB / 0.4903 GB, free: 12.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/0.3339, allocations: 1.719 MB / 0.492 GB, free: 10.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.3339, allocations: 4 kB / 0.492 GB, free: 10.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003805/0.3378, allocations: 2.238 MB / 0.4942 GB, free: 8.172 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002425/0.338, allocations: 381.8 kB / 0.4946 GB, free: 7.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.338, allocations: 16 kB / 0.4946 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006734/0.3448, allocations: 1.265 MB / 0.4958 GB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.3461, allocations: 303.5 kB / 0.4961 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.3486, allocations: 1.595 MB / 0.4977 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.35, allocations: 87.73 kB / 0.4977 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/0.3502, allocations: 75.95 kB / 0.4978 GB, free: 4.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.3503, allocations: 4 kB / 0.4978 GB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003681/0.354, allocations: 2.023 MB / 0.4998 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.354, allocations: 12 kB / 0.4998 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00591/0.3599, allocations: 1.113 MB / 0.5009 GB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.3612, allocations: 315.5 kB / 0.5012 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1651/0.5263, allocations: 1.442 MB / 0.5026 GB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.5279, allocations: 84.34 kB / 0.5027 GB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/0.5283, allocations: 69 kB / 0.5027 GB, free: 94.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009151/0.5292, allocations: 468.7 kB / 0.5032 GB, free: 94.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003525/0.5296, allocations: 145.7 kB / 0.5033 GB, free: 94.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/0.5335, allocations: 2.076 MB / 0.5054 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.5335, allocations: 18.39 kB / 0.5054 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.5335, allocations: 3.375 kB / 0.5054 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.5335, allocations: 7.656 kB / 0.5054 GB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005006/0.5386, allocations: 3.578 MB / 0.5089 GB, free: 92.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5386, allocations: 0 / 0.5089 GB, free: 92.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008933/0.5395, allocations: 185 kB / 0.5091 GB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003474/0.543, allocations: 0.991 MB / 0.51 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.5431, allocations: 37.23 kB / 0.5101 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.5449, allocations: 1.622 MB / 0.5116 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5449, allocations: 5.766 kB / 0.5116 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003687/0.5486, allocations: 2.897 MB / 0.5145 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006809/0.5493, allocations: 407.8 kB / 0.5149 GB, free: 89.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.5496, allocations: 29.78 kB / 0.5149 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009747/0.5506, allocations: 85.81 kB / 0.515 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.5508, allocations: 100.4 kB / 0.5151 GB, free: 89.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.5509, allocations: 44.66 kB / 0.5151 GB, free: 89.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001024/0.5519, allocations: 0.8389 MB / 0.5159 GB, free: 89.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5519, allocations: 0 / 0.5159 GB, free: 89.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002418/0.5543, allocations: 1.165 MB / 0.5171 GB, free: 88.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00172/0.5561, allocations: 0.839 MB / 0.5179 GB, free: 88.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005189/0.5613, allocations: 2.775 MB / 0.5206 GB, free: 85.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5613, allocations: 0 / 0.5206 GB, free: 85.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.5629, allocations: 0.8716 MB / 0.5215 GB, free: 84.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.5659, allocations: 0.6203 MB / 0.5221 GB, free: 84.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005006/0.5709, allocations: 3.644 MB / 0.5256 GB, free: 80.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.5715, allocations: 1.288 MB / 0.5269 GB, free: 79.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004752/0.572, allocations: 143.3 kB / 0.527 GB, free: 79.29 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.572, allocations: 0 / 0.527 GB, free: 79.29 MB / 378.7 MB Notification: Performance of Templates: time 0.04274/0.6148, allocations: 35.76 MB / 0.5619 GB, free: 43.61 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches