Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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) 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001187/0.001187, allocations: 94.2 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002532, allocations: 12 kB / 306.6 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 51.48 MB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.1957/0.3018, allocations: 26.94 MB / 385 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.3175, allocations: 12.71 MB / 397.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001611/0.3191, allocations: 56.66 kB / 397.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.3205, allocations: 0.5106 MB / 398.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004677/0.3252, allocations: 1.767 MB / 400 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007995/0.3332, allocations: 2.861 MB / 402.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003719/0.3369, allocations: 2.188 MB / 405.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.3381, allocations: 0.8361 MB / 405.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002129/0.3403, allocations: 1.165 MB / 407.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.3418, allocations: 0.979 MB / 408.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.342, allocations: 71.25 kB / 408.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004337/0.3463, allocations: 2.157 MB / 410.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005/0.3469, allocations: 453.1 kB / 410.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004669/0.3473, allocations: 302.8 kB / 411 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003472/0.3508, allocations: 2.601 MB / 413.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3508, allocations: 0 / 413.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3508, allocations: 0 / 413.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.3509, allocations: 0 / 413.6 MB, free: 4.812 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003628/0.3545, allocations: 1.845 MB / 415.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3545, allocations: 12.03 kB / 415.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004842/0.355, allocations: 166.2 kB / 415.7 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.3566, allocations: 0.9139 MB / 416.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.202e-05/0.3566, allocations: 81.95 kB / 416.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.3568, allocations: 99.83 kB / 416.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.3592, allocations: 1.621 MB / 418.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.3592, allocations: 0 / 418.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.3594, allocations: 47.91 kB / 418.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.3595, allocations: 105.9 kB / 418.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002422/0.3619, allocations: 1.635 MB / 420.2 MB, free: 14.11 MB / 334.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.009699/0.3716, allocations: 6.734 MB / 426.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.373, allocations: 0.9222 MB / 427.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003651/0.3767, allocations: 2.852 MB / 430.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.3767, allocations: 43.22 kB / 430.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.3768, allocations: 0 / 430.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.008014/0.3848, allocations: 3.713 MB / 434.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.443e-05/0.3849, allocations: 196.9 kB / 434.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.3865, allocations: 1.298 MB / 435.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.994e-05/0.3866, allocations: 49.7 kB / 436 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004658/0.3871, allocations: 0.6471 MB / 436.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.3873, allocations: 327.4 kB / 436.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.545e-05/0.3874, allocations: 32 kB / 437 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3875, allocations: 361.9 kB / 437.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008725/0.3884, allocations: 0.5544 MB / 437.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.3896, allocations: 0.9849 MB / 438.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009937/0.3906, allocations: 0.6744 MB / 439.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3906, allocations: 4 kB / 439.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002921/0.3935, allocations: 1.861 MB / 441.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001503/0.395, allocations: 4.65 MB / 446 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.395, allocations: 12 kB / 446 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/0.3999, allocations: 0.7866 MB / 446.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/0.401, allocations: 279.5 kB / 447.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.4029, allocations: 2.172 MB / 449.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.4041, allocations: 92.02 kB / 449.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.4043, allocations: 63.97 kB / 449.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.4043, allocations: 4 kB / 449.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002669/0.407, allocations: 1.658 MB / 451.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.407, allocations: 12.66 kB / 451.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00414/0.4111, allocations: 0.6383 MB / 451.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.4122, allocations: 287.5 kB / 452 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.4138, allocations: 2.013 MB / 454 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.4149, allocations: 96.02 kB / 454.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.415, allocations: 63.98 kB / 454.2 MB, free: 10.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[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 (166): * Single equations (assignments): 163 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006949/0.4157, allocations: 472.5 kB / 454.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.4159, allocations: 146.2 kB / 454.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.4187, allocations: 1.528 MB / 456.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4188, allocations: 19.95 kB / 456.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4188, allocations: 0 / 456.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.4188, allocations: 3.984 kB / 456.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.4231, allocations: 2.815 MB / 459.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4231, allocations: 0 / 459.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006964/0.4238, allocations: 159.9 kB / 459.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002933/0.4267, allocations: 0.6463 MB / 460 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.077e-05/0.4268, allocations: 27.98 kB / 460 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.4285, allocations: 2.102 MB / 462.1 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.4285, allocations: 0 / 462.1 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003253/0.4318, allocations: 2.148 MB / 464.2 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004958/0.4323, allocations: 247.4 kB / 464.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000263/0.4326, allocations: 28.22 kB / 464.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009104/0.4335, allocations: 71.89 kB / 464.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.4337, allocations: 96.8 kB / 464.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.892e-05/0.4338, allocations: 47.73 kB / 464.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001232/0.435, allocations: 0.8928 MB / 465.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.435, allocations: 3.938 kB / 465.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002968/0.438, allocations: 1.121 MB / 466.7 MB, free: 13.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002036/0.4401, allocations: 0.8181 MB / 467.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004276/0.4443, allocations: 2.248 MB / 469.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4444, allocations: 0 / 469.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.4457, allocations: 0.6822 MB / 470.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/0.4485, allocations: 0.5849 MB / 471.1 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/0.4533, allocations: 3.145 MB / 474.2 MB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.4543, allocations: 1.283 MB / 475.5 MB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002112/0.4565, allocations: 0.5786 MB / 476.1 MB, free: 4.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.4569, allocations: 111.4 kB / 476.2 MB, free: 4.184 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4569, allocations: 0 / 476.2 MB, free: 4.184 MB / 382.1 MB Notification: Performance of Templates: time 0.05769/0.5146, allocations: 36.54 MB / 0.5007 GB, free: 15.86 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TanksWithEmptyingPipe1/TanksWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches