Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.001048/0.001048, allocations: 180.7 kB / 17.82 MB, free: 5.652 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.507/1.507, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004957/0.0004958, allocations: 15.28 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1269, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02922/0.1562, allocations: 26.87 MB / 355.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02174/0.178, allocations: 12.69 MB / 368 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001944/0.18, allocations: 55.5 kB / 368 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.1817, allocations: 0.5091 MB / 368.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005559/0.1872, allocations: 1.768 MB / 370.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008259/0.1955, allocations: 2.869 MB / 373.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004666/0.2002, allocations: 2.194 MB / 375.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.2016, allocations: 0.8242 MB / 376.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.2037, allocations: 1.168 MB / 377.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001406/0.2051, allocations: 0.9812 MB / 378.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.2053, allocations: 72 kB / 378.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2295/0.4348, allocations: 2.116 MB / 380.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.4363, allocations: 450.9 kB / 381 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000866/0.4372, allocations: 305.2 kB / 381.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006415/0.4436, allocations: 2.586 MB / 383.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4437, allocations: 0 / 383.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.4437, allocations: 0 / 383.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.066e-05/0.4437, allocations: 3.281 kB / 383.9 MB, free: 13.74 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.005393/0.4491, allocations: 1.831 MB / 385.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.207e-05/0.4492, allocations: 9.031 kB / 385.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003386/0.4495, allocations: 164.2 kB / 385.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006067/0.4502, allocations: 165.5 kB / 386 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/0.4519, allocations: 0.923 MB / 387 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.818e-05/0.452, allocations: 80.64 kB / 387 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.4522, allocations: 97.94 kB / 387.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003123/0.4553, allocations: 1.616 MB / 388.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.4553, allocations: 4 kB / 388.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/0.4555, allocations: 45.95 kB / 388.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001675/0.4557, allocations: 105.5 kB / 388.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00299/0.4587, allocations: 1.641 MB / 390.5 MB, free: 12.06 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.01061/0.4693, allocations: 6.732 MB / 397.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.4708, allocations: 0.917 MB / 398.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004413/0.4752, allocations: 2.859 MB / 401.1 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.84e-05/0.4753, allocations: 43.97 kB / 401.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=80): time 3.377e-06/0.4753, allocations: 0 / 401.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.008929/0.4843, allocations: 3.71 MB / 404.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4844, allocations: 192.1 kB / 405 MB, free: 6.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.4861, allocations: 1.294 MB / 406.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4862, allocations: 53.66 kB / 406.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004503/0.4867, allocations: 0.6483 MB / 407 MB, free: 5.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.487, allocations: 317.7 kB / 407.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.487, allocations: 29.66 kB / 407.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.967e-05/0.4871, allocations: 364.4 kB / 407.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000881/0.488, allocations: 0.5587 MB / 408.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/0.4891, allocations: 0.9771 MB / 409.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009575/0.4901, allocations: 0.6794 MB / 409.9 MB, free: 4.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4901, allocations: 5.344 kB / 409.9 MB, free: 4.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002832/0.4929, allocations: 1.865 MB / 411.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001005/0.494, allocations: 4.65 MB / 416.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.494, allocations: 11.41 kB / 416.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004836/0.4988, allocations: 0.7826 MB / 417.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.5001, allocations: 285.7 kB / 417.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.5022, allocations: 2.161 MB / 419.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.504, allocations: 104.1 kB / 419.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.5041, allocations: 69.42 kB / 419.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.5042, allocations: 3.938 kB / 419.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002675/0.5068, allocations: 1.658 MB / 421.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.5069, allocations: 11.53 kB / 421.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/0.5108, allocations: 0.6307 MB / 422.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.5119, allocations: 291.1 kB / 422.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.5137, allocations: 2.011 MB / 424.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.5152, allocations: 100.8 kB / 424.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.5154, allocations: 61.92 kB / 424.6 MB, free: 11.47 MB / 334.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.001092/0.5165, allocations: 472.6 kB / 425 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/0.5168, allocations: 143.9 kB / 425.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00298/0.5198, allocations: 1.524 MB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.5198, allocations: 12 kB / 426.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.5199, allocations: 4.094 kB / 426.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.5199, allocations: 11.88 kB / 426.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004921/0.5248, allocations: 2.823 MB / 429.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5248, allocations: 2.734 kB / 429.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007085/0.5255, allocations: 156.8 kB / 429.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002944/0.5285, allocations: 0.6441 MB / 430.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.034e-05/0.5286, allocations: 26.17 kB / 430.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/0.5305, allocations: 2.119 MB / 432.5 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5305, allocations: 7.219 kB / 432.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00334/0.5339, allocations: 2.14 MB / 434.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007143/0.5346, allocations: 255.9 kB / 434.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/0.5348, allocations: 24.25 kB / 434.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008523/0.5357, allocations: 71.02 kB / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.5359, allocations: 95.45 kB / 435.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.536, allocations: 45.41 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001356/0.5374, allocations: 0.8901 MB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5374, allocations: 0 / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003898/0.5413, allocations: 1.114 MB / 437.1 MB, free: 1.988 MB / 334.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.006301/0.5476, allocations: 3.671 MB / 440.8 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005088/0.5527, allocations: 2.246 MB / 443.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.5527, allocations: 0 / 443.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.5542, allocations: 0.6802 MB / 443.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00306/0.5572, allocations: 0.5741 MB / 444.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/0.5699, allocations: 12.37 MB / 456.7 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.5711, allocations: 1.284 MB / 458 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00234/0.5734, allocations: 0.5681 MB / 458.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000775/0.5742, allocations: 0.5217 MB / 459 MB, free: 14.15 MB / 366.1 MB Notification: Performance of SimCode: time 1.643e-06/0.5742, allocations: 0 / 459 MB, free: 14.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09298/0.6672, allocations: 49.39 MB / 0.4965 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002774/0.6675, allocations: 276.2 kB / 0.4968 GB, free: 12.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.424/4.091, allocations: 4.062 kB / 0.4968 GB, free: 12.47 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat