Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 101.9 kB / 17.31 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 177.8 kB / 18.2 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.4 MB / 224.4 MB, free: 13.05 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004761/0.0004764, allocations: 19.94 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09608, allocations: 47.58 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01969/0.1158, allocations: 20.62 MB / 349.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.126, allocations: 7.212 MB / 356.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.127, allocations: 39.69 kB / 356.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000973/0.128, allocations: 318.3 kB / 357.1 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002683/0.1307, allocations: 1.019 MB / 358.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004506/0.1352, allocations: 1.559 MB / 359.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003765/0.139, allocations: 3.127 MB / 362.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.1401, allocations: 0.5069 MB / 363.4 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.1418, allocations: 0.7042 MB / 364.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.1433, allocations: 0.7589 MB / 364.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.1435, allocations: 44 kB / 364.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.1462, allocations: 1.213 MB / 366.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003367/0.1465, allocations: 255.1 kB / 366.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005769/0.1471, allocations: 455.6 kB / 366.8 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.1499, allocations: 1.823 MB / 368.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1499, allocations: 0 / 368.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1499, allocations: 0 / 368.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1499, allocations: 4 kB / 368.6 MB, free: 11.98 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002465/0.1524, allocations: 1.122 MB / 369.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1525, allocations: 8.031 kB / 369.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.1528, allocations: 103.9 kB / 369.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000921/0.1537, allocations: 0.6008 MB / 370.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.1538, allocations: 41.31 kB / 370.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.1539, allocations: 55.98 kB / 370.5 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1553, allocations: 0.8907 MB / 371.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.1553, allocations: 3.938 kB / 371.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.962e-05/0.1554, allocations: 32 kB / 371.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.498e-05/0.1555, allocations: 41.3 kB / 371.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.1568, allocations: 0.8053 MB / 372.3 MB, free: 8.141 MB / 318.1 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.005211/0.162, allocations: 3.842 MB / 376.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008934/0.1629, allocations: 0.5392 MB / 376.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.1634, allocations: 282 kB / 376.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004148/0.1638, allocations: 0.5073 MB / 377.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.1638, allocations: 39 kB / 377.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.565e-06/0.1638, allocations: 0 / 377.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.004456/0.1683, allocations: 2.135 MB / 379.6 MB, free: 328 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/0.1684, allocations: 133 kB / 379.8 MB, free: 164 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1896/0.358, allocations: 0.7276 MB / 380.5 MB, free: 55.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002325/0.3583, allocations: 37.95 kB / 380.5 MB, free: 55.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/0.3587, allocations: 380 kB / 380.9 MB, free: 54.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/0.359, allocations: 181.7 kB / 381.1 MB, free: 54.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3592, allocations: 64.69 kB / 381.1 MB, free: 54.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3594, allocations: 388.2 kB / 381.5 MB, free: 54.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009097/0.3603, allocations: 306.5 kB / 381.8 MB, free: 54.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.3615, allocations: 0.5108 MB / 382.3 MB, free: 54.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.3636, allocations: 0.7702 MB / 383.1 MB, free: 54.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.3636, allocations: 1.094 kB / 383.1 MB, free: 54.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002668/0.3663, allocations: 1.006 MB / 384.1 MB, free: 53.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.3665, allocations: 260.5 kB / 384.4 MB, free: 53.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.3665, allocations: 4.875 kB / 384.4 MB, free: 53.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002518/0.3691, allocations: 307 kB / 384.7 MB, free: 53.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009767/0.3701, allocations: 151.8 kB / 384.8 MB, free: 53.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.3714, allocations: 1.306 MB / 386.1 MB, free: 52.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.3726, allocations: 55.94 kB / 386.2 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3727, allocations: 37.5 kB / 386.2 MB, free: 52.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3728, allocations: 6.875 kB / 386.2 MB, free: 52.11 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002394/0.3752, allocations: 0.842 MB / 387.1 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.3752, allocations: 6.219 kB / 387.1 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001758/0.377, allocations: 190.9 kB / 387.2 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.378, allocations: 164.3 kB / 387.4 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009736/0.379, allocations: 1.193 MB / 388.6 MB, free: 50.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.3801, allocations: 46.02 kB / 388.6 MB, free: 50.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.3803, allocations: 34.28 kB / 388.7 MB, free: 50.61 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0008026/0.3811, allocations: 333 kB / 389 MB, free: 50.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.3814, allocations: 79.38 kB / 389.1 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.3846, allocations: 0.9738 MB / 390.1 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.3847, allocations: 7.203 kB / 390.1 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3847, allocations: 3.938 kB / 390.1 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.3847, allocations: 3.75 kB / 390.1 MB, free: 49.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.3897, allocations: 1.759 MB / 391.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.3898, allocations: 1.188 kB / 391.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008478/0.3906, allocations: 107.9 kB / 391.9 MB, free: 49.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/0.3927, allocations: 255 kB / 392.2 MB, free: 49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-05/0.3928, allocations: 16.78 kB / 392.2 MB, free: 48.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.394, allocations: 1.278 MB / 393.5 MB, free: 47.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.394, allocations: 2.312 kB / 393.5 MB, free: 47.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.3976, allocations: 1.306 MB / 394.8 MB, free: 47.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.398, allocations: 172.9 kB / 395 MB, free: 47.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.3982, allocations: 17.44 kB / 395 MB, free: 47.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009335/0.3991, allocations: 46.83 kB / 395 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.3994, allocations: 56.97 kB / 395.1 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-05/0.3995, allocations: 29.95 kB / 395.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.4006, allocations: 0.5141 MB / 395.6 MB, free: 46.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4006, allocations: 0 / 395.6 MB, free: 46.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002789/0.4034, allocations: 0.5912 MB / 396.2 MB, free: 46.76 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001804/0.4052, allocations: 0.4988 MB / 396.7 MB, free: 46.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00376/0.409, allocations: 1.204 MB / 397.9 MB, free: 46.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.4091, allocations: 0 / 397.9 MB, free: 46.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.4101, allocations: 402.8 kB / 398.3 MB, free: 46.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003753/0.4139, allocations: 393.3 kB / 398.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.4185, allocations: 1.979 MB / 400.7 MB, free: 44.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006775/0.4193, allocations: 0.9878 MB / 401.7 MB, free: 43.79 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.002241/0.4215, allocations: 324.5 kB / 402 MB, free: 43.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.4219, allocations: 76.73 kB / 402 MB, free: 43.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.422, allocations: 4 kB / 402.1 MB, free: 43.62 MB / 318.1 MB Notification: Performance of Templates: time 0.05836/0.4803, allocations: 21.75 MB / 423.8 MB, free: 22.06 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches