Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001459/0.001459, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.1 MB / 344.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 80.64 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1008, allocations: 62.43 MB / 480.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.2271/0.328, allocations: 59.32 MB / 0.5268 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.3437, allocations: 16.39 MB / 0.5428 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006529/0.3444, allocations: 19.97 kB / 0.5428 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.3456, allocations: 449.9 kB / 0.5433 GB, free: 400 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0134/0.359, allocations: 4.98 MB / 0.5481 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005919/0.3649, allocations: 2.335 MB / 0.5504 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002913/0.3678, allocations: 2.755 MB / 0.5531 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.3691, allocations: 0.901 MB / 0.554 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005898/0.375, allocations: 2.695 MB / 0.5566 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004872/0.3799, allocations: 2.435 MB / 0.559 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003148/0.3802, allocations: 103.8 kB / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01422/0.3945, allocations: 7.189 MB / 0.5661 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006783/0.3952, allocations: 335.1 kB / 0.5664 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.3966, allocations: 0.5873 MB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.4077, allocations: 5.469 MB / 0.5723 GB, free: 9.188 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4077, allocations: 4 kB / 0.5723 GB, free: 9.184 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4077, allocations: 0 / 0.5723 GB, free: 9.184 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.125e-05/0.4078, allocations: 4 kB / 0.5723 GB, free: 9.18 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00482/0.4126, allocations: 1.879 MB / 0.5742 GB, free: 7.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4126, allocations: 8.031 kB / 0.5742 GB, free: 7.242 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002167/0.4129, allocations: 147.3 kB / 0.5743 GB, free: 7.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.4151, allocations: 303.5 kB / 0.5746 GB, free: 6.793 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.4161, allocations: 0.6455 MB / 0.5753 GB, free: 6.105 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.4164, allocations: 304.3 kB / 0.5755 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.4165, allocations: 79.94 kB / 0.5756 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.4197, allocations: 1.52 MB / 0.5771 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.4197, allocations: 4 kB / 0.5771 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.4198, allocations: 36 kB / 0.5771 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.922e-05/0.4199, allocations: 38 kB / 0.5772 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003211/0.4231, allocations: 1.342 MB / 0.5785 GB, free: 2.656 MB / 414.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.008706/0.4318, allocations: 6.422 MB / 0.5848 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002823/0.4347, allocations: 0.9543 MB / 0.5857 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008863/0.4356, allocations: 447 kB / 0.5861 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03303/0.4686, allocations: 17.14 MB / 0.6029 GB, free: 7.059 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.4687, allocations: 43.12 kB / 0.6029 GB, free: 7.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=59): time 2.274e-06/0.4687, allocations: 0 / 0.6029 GB, free: 7.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=64): time 0.008368/0.4771, allocations: 2.946 MB / 0.6058 GB, free: 4.004 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.058e-05/0.4772, allocations: 162.8 kB / 0.6059 GB, free: 3.805 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009727/0.4782, allocations: 0.8129 MB / 0.6067 GB, free: 2.984 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.246e-05/0.4782, allocations: 49.69 kB / 0.6068 GB, free: 2.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.4786, allocations: 443.5 kB / 0.6072 GB, free: 2.492 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.4788, allocations: 217 kB / 0.6074 GB, free: 2.277 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/0.4791, allocations: 174.5 kB / 0.6076 GB, free: 2.098 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.4792, allocations: 398.7 kB / 0.6079 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008999/0.4801, allocations: 445.6 kB / 0.6084 GB, free: 1.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.4812, allocations: 0.6572 MB / 0.609 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.483, allocations: 0.9648 MB / 0.61 GB, free: 15.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.483, allocations: 0 / 0.61 GB, free: 15.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002461/0.4855, allocations: 1.223 MB / 0.6111 GB, free: 14.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4855, allocations: 8 kB / 0.6112 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.4855, allocations: 4 kB / 0.6112 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003247/0.4858, allocations: 89.14 kB / 0.6112 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003203/0.4891, allocations: 339.4 kB / 0.6116 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005727/0.4948, allocations: 6.82 MB / 0.6182 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008659/0.4957, allocations: 75.92 kB / 0.6183 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.4958, allocations: 39.98 kB / 0.6183 GB, free: 6.281 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 21 (Boundary_fixed.medium.phase,massFlowRate[2].medium.phase,massFlowRate[1].medium.phase,tank.aboveLevel[4],$PRE.tank.aboveLevel[4],tank.aboveLevel[3],$PRE.tank.aboveLevel[3],tank.aboveLevel[2],$PRE.tank.aboveLevel[2],tank.aboveLevel[1],$PRE.tank.aboveLevel[1],tank.ports_m_flow_out[4],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],tank.heatTransfer.states[1].phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005159/0.4963, allocations: 340.2 kB / 0.6187 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.4965, allocations: 90.91 kB / 0.6187 GB, free: 5.852 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/0.4997, allocations: 2.188 MB / 0.6209 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.4997, allocations: 24 kB / 0.6209 GB, free: 3.629 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.4997, allocations: 4 kB / 0.6209 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.4998, allocations: 3.984 kB / 0.6209 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005084/0.5048, allocations: 3.462 MB / 0.6243 GB, free: 84 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.5049, allocations: 4.062 kB / 0.6243 GB, free: 80 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003332/0.5082, allocations: 287.7 kB / 0.6246 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003607/0.5086, allocations: 104.8 kB / 0.6247 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.5087, allocations: 19.98 kB / 0.6247 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005791/0.5145, allocations: 6.776 MB / 0.6313 GB, free: 8.316 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5145, allocations: 0 / 0.6313 GB, free: 8.316 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.5181, allocations: 2.168 MB / 0.6334 GB, free: 6.113 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.5184, allocations: 187.6 kB / 0.6336 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.5187, allocations: 71.36 kB / 0.6337 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007665/0.5195, allocations: 63.98 kB / 0.6337 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.5197, allocations: 128.3 kB / 0.6339 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.421e-05/0.5198, allocations: 27.97 kB / 0.6339 GB, free: 5.625 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.521, allocations: 0.8922 MB / 0.6348 GB, free: 4.727 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.521, allocations: 0 / 0.6348 GB, free: 4.727 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003333/0.5244, allocations: 1.23 MB / 0.636 GB, free: 3.496 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008684/0.5331, allocations: 3.917 MB / 0.6398 GB, free: 15.54 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005416/0.5385, allocations: 1.446 MB / 0.6412 GB, free: 14.09 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/0.5385, allocations: 0 / 0.6412 GB, free: 14.09 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003661/0.5422, allocations: 0.9018 MB / 0.6421 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/0.545, allocations: 0.5745 MB / 0.6426 GB, free: 12.64 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.5629, allocations: 11.65 MB / 0.654 GB, free: 476 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008214/0.5637, allocations: 1.215 MB / 0.6552 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001093/0.5648, allocations: 0.4941 MB / 0.6557 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005931/0.5654, allocations: 487.3 kB / 0.6561 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of SimCode: time 6.12e-07/0.5655, allocations: 0 / 0.6561 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2764/0.8418, allocations: 67.38 MB / 0.7219 GB, free: 206.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.97, allocations: 2.781 kB / 0.722 GB, free: 206.1 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)