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.001653/0.001653, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001926/0.001926, allocations: 205.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3285, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.06372/0.3923, allocations: 59.35 MB / 0.5886 GB, free: 6.195 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02183/0.4142, allocations: 16.38 MB / 0.6046 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008683/0.4151, allocations: 19.88 kB / 0.6046 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.4165, allocations: 445.2 kB / 0.605 GB, free: 5.301 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01454/0.4311, allocations: 4.984 MB / 0.6099 GB, free: 324 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006456/0.4376, allocations: 2.34 MB / 0.6122 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004301/0.4419, allocations: 2.754 MB / 0.6149 GB, free: 11.21 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.4435, allocations: 0.8875 MB / 0.6157 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006594/0.4501, allocations: 2.699 MB / 0.6184 GB, free: 7.582 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005329/0.4555, allocations: 2.435 MB / 0.6207 GB, free: 5.117 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002976/0.4558, allocations: 111.9 kB / 0.6208 GB, free: 5.008 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.4704, allocations: 7.364 MB / 0.628 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005293/0.4709, allocations: 331.1 kB / 0.6283 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009051/0.4718, allocations: 0.5912 MB / 0.6289 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01209/0.4839, allocations: 5.475 MB / 0.6343 GB, free: 7.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.484, allocations: 4 kB / 0.6343 GB, free: 7.227 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.484, allocations: 3.938 kB / 0.6343 GB, free: 7.223 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.777e-05/0.484, allocations: 0 / 0.6343 GB, free: 7.223 MB / 494.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.00519/0.4892, allocations: 1.929 MB / 0.6362 GB, free: 5.234 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4893, allocations: 12.03 kB / 0.6362 GB, free: 5.223 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001817/0.4895, allocations: 143.4 kB / 0.6363 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002338/0.4918, allocations: 304 kB / 0.6366 GB, free: 4.777 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.4931, allocations: 0.6771 MB / 0.6373 GB, free: 4.062 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.4934, allocations: 304.2 kB / 0.6375 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.4935, allocations: 87.94 kB / 0.6376 GB, free: 3.633 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003377/0.4969, allocations: 1.504 MB / 0.6391 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.497, allocations: 7.938 kB / 0.6391 GB, free: 2.035 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.4971, allocations: 36 kB / 0.6391 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.337e-05/0.4971, allocations: 45.98 kB / 0.6392 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/0.5006, allocations: 1.338 MB / 0.6405 GB, free: 0.6133 MB / 494.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.009279/0.5099, allocations: 6.39 MB / 0.6467 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.5128, allocations: 0.9581 MB / 0.6477 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009089/0.5137, allocations: 455 kB / 0.6481 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03458/0.5483, allocations: 17.19 MB / 0.6649 GB, free: 4.98 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.5484, allocations: 39.12 kB / 0.6649 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=59): time 2.134e-06/0.5484, allocations: 0 / 0.6649 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64): time 0.008755/0.5571, allocations: 2.972 MB / 0.6678 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5573, allocations: 158.8 kB / 0.668 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.5583, allocations: 0.817 MB / 0.6688 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.967e-05/0.5584, allocations: 53.69 kB / 0.6688 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003895/0.5588, allocations: 452.3 kB / 0.6693 GB, free: 392 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.5591, allocations: 230.1 kB / 0.6695 GB, free: 160 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.5594, allocations: 174.5 kB / 0.6696 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002179/0.5596, allocations: 402.7 kB / 0.67 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009697/0.5606, allocations: 441.7 kB / 0.6704 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.5618, allocations: 0.6649 MB / 0.6711 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/0.5637, allocations: 0.957 MB / 0.672 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.5637, allocations: 7.938 kB / 0.672 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002689/0.5664, allocations: 1.219 MB / 0.6732 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.5664, allocations: 8 kB / 0.6732 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.5664, allocations: 4 kB / 0.6732 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003645/0.5668, allocations: 93.48 kB / 0.6733 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/0.57, allocations: 343.4 kB / 0.6737 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006413/0.5764, allocations: 6.802 MB / 0.6803 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5775, allocations: 71.92 kB / 0.6804 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.291e-05/0.5776, allocations: 40.11 kB / 0.6804 GB, free: 4.176 MB / 0.5294 GB 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.0005602/0.5782, allocations: 354.9 kB / 0.6807 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.5784, allocations: 91.44 kB / 0.6808 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00352/0.5819, allocations: 2.193 MB / 0.683 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.582, allocations: 19.97 kB / 0.683 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.582, allocations: 0 / 0.683 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.582, allocations: 0 / 0.683 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00538/0.5874, allocations: 3.463 MB / 0.6864 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5874, allocations: 0 / 0.6864 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003061/0.5905, allocations: 287.7 kB / 0.6867 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003636/0.5909, allocations: 104.7 kB / 0.6868 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-05/0.5909, allocations: 19.98 kB / 0.6868 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006225/0.5972, allocations: 6.777 MB / 0.6934 GB, free: 6.203 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5972, allocations: 11.91 kB / 0.6934 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003911/0.6011, allocations: 2.177 MB / 0.6955 GB, free: 3.984 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.6014, allocations: 188.3 kB / 0.6957 GB, free: 3.781 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.6017, allocations: 75.5 kB / 0.6958 GB, free: 3.707 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007248/0.6024, allocations: 63.92 kB / 0.6958 GB, free: 3.645 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.6027, allocations: 128.4 kB / 0.696 GB, free: 3.516 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.6028, allocations: 27.97 kB / 0.696 GB, free: 3.488 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001201/0.604, allocations: 0.8922 MB / 0.6969 GB, free: 2.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.604, allocations: 0 / 0.6969 GB, free: 2.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003308/0.6073, allocations: 1.236 MB / 0.6981 GB, free: 1.352 MB / 0.545 GB 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.009087/0.6164, allocations: 3.929 MB / 0.7019 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005045/0.6215, allocations: 1.286 MB / 0.7032 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.6216, allocations: 4.062 kB / 0.7032 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003706/0.6253, allocations: 0.9093 MB / 0.7041 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002887/0.6282, allocations: 0.5581 MB / 0.7046 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.6485, allocations: 11.02 MB / 0.7154 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009677/0.6495, allocations: 1.219 MB / 0.7165 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001266/0.6507, allocations: 0.5013 MB / 0.717 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006992/0.6515, allocations: 487.2 kB / 0.7175 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of SimCode: time 2.805e-06/0.6515, allocations: 0 / 0.7175 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3458/0.9973, allocations: 67.74 MB / 0.7837 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.57/17.57, allocations: 7.688 kB / 0.7837 GB, free: 143.5 MB / 0.5762 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)