Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002447/0.002447, allocations: 199.5 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.789/2.789, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 104.7 kB / 297.4 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004446, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5565/0.557, allocations: 51.3 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.579/2.136, allocations: 325.3 MB / 0.7168 GB, free: 146.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004077/2.137, allocations: 94.83 kB / 0.7169 GB, free: 146.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267/3.404, allocations: 194.9 MB / 0.9072 GB, free: 99.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.336e-06/3.404, allocations: 0 / 0.9072 GB, free: 99.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001238/3.404, allocations: 30.23 kB / 0.9072 GB, free: 99.29 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.006993/3.411, allocations: 1.401 MB / 0.9086 GB, free: 98.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.988e-05/3.411, allocations: 7.812 kB / 0.9086 GB, free: 98.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009968/3.412, allocations: 117.6 kB / 0.9087 GB, free: 98.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/3.415, allocations: 0.7545 MB / 0.9094 GB, free: 98.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.489e-05/3.415, allocations: 51.7 kB / 0.9095 GB, free: 98.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/3.415, allocations: 65.03 kB / 0.9095 GB, free: 98.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002664/3.418, allocations: 1.056 MB / 0.9106 GB, free: 98.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.152e-05/3.418, allocations: 3.891 kB / 0.9106 GB, free: 98.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001551/3.418, allocations: 32.92 kB / 0.9106 GB, free: 98.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001815/3.418, allocations: 63.95 kB / 0.9107 GB, free: 98.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/3.421, allocations: 1.019 MB / 0.9116 GB, free: 98.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/3.433, allocations: 4.343 MB / 0.9159 GB, free: 95.87 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/3.434, allocations: 0.5754 MB / 0.9165 GB, free: 95.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/3.435, allocations: 315.3 kB / 0.9168 GB, free: 95.83 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004557/3.44, allocations: 1.973 MB / 0.9187 GB, free: 94.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.935e-05/3.44, allocations: 45.11 kB / 0.9187 GB, free: 94.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 4.128e-06/3.44, allocations: 0 / 0.9187 GB, free: 94.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.01181/3.452, allocations: 1.944 MB / 0.9206 GB, free: 93.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/3.452, allocations: 165.5 kB / 0.9208 GB, free: 93.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/3.454, allocations: 0.9151 MB / 0.9217 GB, free: 93.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/3.455, allocations: 37.61 kB / 0.9217 GB, free: 93.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/3.455, allocations: 477.4 kB / 0.9222 GB, free: 92.74 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002657/3.456, allocations: 167 kB / 0.9223 GB, free: 92.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/3.456, allocations: 23.12 kB / 0.9223 GB, free: 92.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/3.456, allocations: 336.5 kB / 0.9227 GB, free: 92.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007884/3.457, allocations: 311.1 kB / 0.923 GB, free: 92.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/3.458, allocations: 0.6017 MB / 0.9236 GB, free: 91.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/3.459, allocations: 0.8503 MB / 0.9244 GB, free: 91.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/3.459, allocations: 7.875 kB / 0.9244 GB, free: 91.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003254/3.463, allocations: 1.081 MB / 0.9254 GB, free: 90.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003352/3.463, allocations: 340 kB / 0.9258 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/3.463, allocations: 7.906 kB / 0.9258 GB, free: 90.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002652/3.466, allocations: 324.5 kB / 0.9261 GB, free: 90.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/3.467, allocations: 168.1 kB / 0.9262 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/3.468, allocations: 1.354 MB / 0.9276 GB, free: 89.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/3.47, allocations: 64.45 kB / 0.9276 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002949/3.471, allocations: 43.19 kB / 0.9277 GB, free: 89.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/3.471, allocations: 6.594 kB / 0.9277 GB, free: 89.03 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002787/3.473, allocations: 0.9509 MB / 0.9286 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/3.474, allocations: 11.66 kB / 0.9286 GB, free: 88.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/3.476, allocations: 294.8 kB / 0.9289 GB, free: 88.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009743/3.477, allocations: 177.8 kB / 0.9291 GB, free: 88.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/3.478, allocations: 1.311 MB / 0.9303 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/3.48, allocations: 57.69 kB / 0.9304 GB, free: 87.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/3.48, allocations: 46.34 kB / 0.9304 GB, free: 87.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001144/3.481, allocations: 361.8 kB / 0.9308 GB, free: 87.13 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005046/3.482, allocations: 96.41 kB / 0.9309 GB, free: 87.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/3.485, allocations: 0.7792 MB / 0.9316 GB, free: 86.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/3.485, allocations: 3.938 kB / 0.9316 GB, free: 86.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/3.485, allocations: 2.312 kB / 0.9317 GB, free: 86.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/3.485, allocations: 0 / 0.9317 GB, free: 86.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/3.489, allocations: 1.591 MB / 0.9332 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/3.489, allocations: 6.422 kB / 0.9332 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006404/3.49, allocations: 78.86 kB / 0.9333 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/3.492, allocations: 285.1 kB / 0.9336 GB, free: 85.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.225e-05/3.493, allocations: 7.938 kB / 0.9336 GB, free: 85.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/3.494, allocations: 1.319 MB / 0.9349 GB, free: 84.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/3.494, allocations: 3.875 kB / 0.9349 GB, free: 84.74 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/3.497, allocations: 1.082 MB / 0.9359 GB, free: 84.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006496/3.497, allocations: 192.9 kB / 0.9361 GB, free: 84.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/3.497, allocations: 15.56 kB / 0.9361 GB, free: 84.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008852/3.498, allocations: 49.42 kB / 0.9362 GB, free: 84.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/3.499, allocations: 42.44 kB / 0.9362 GB, free: 84.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-05/3.499, allocations: 26.52 kB / 0.9362 GB, free: 84.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00145/3.5, allocations: 0.6446 MB / 0.9369 GB, free: 83.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/3.5, allocations: 0 / 0.9369 GB, free: 83.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004677/3.505, allocations: 0.8388 MB / 0.9377 GB, free: 83.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004068/3.509, allocations: 0.8165 MB / 0.9385 GB, free: 83.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00424/3.513, allocations: 1.235 MB / 0.9397 GB, free: 82.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-05/3.513, allocations: 0 / 0.9397 GB, free: 82.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/3.515, allocations: 361.7 kB / 0.94 GB, free: 82.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/3.519, allocations: 384.5 kB / 0.9404 GB, free: 82.67 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/3.523, allocations: 2.046 MB / 0.9424 GB, free: 81.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/3.524, allocations: 1.029 MB / 0.9434 GB, free: 80.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004881/3.525, allocations: 88.19 kB / 0.9435 GB, free: 80.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.593e-06/3.525, allocations: 0 / 0.9435 GB, free: 80.9 MB / 458.7 MB Notification: Performance of Templates: time 0.07976/3.604, allocations: 26.72 MB / 0.9696 GB, free: 62.16 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches