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.001203/0.001203, allocations: 109.6 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.4 MB, free: 9.066 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2311/0.2311, allocations: 46.11 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 72.36 kB / 417.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 62.44 MB / 479.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.2898/0.4035, allocations: 59.87 MB / 0.5268 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01999/0.4235, allocations: 16.58 MB / 0.543 GB, free: 336 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.4247, allocations: 29.69 kB / 0.543 GB, free: 320 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.4261, allocations: 399.8 kB / 0.5434 GB, free: 92 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01655/0.4427, allocations: 4.435 MB / 0.5477 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006941/0.4496, allocations: 2.12 MB / 0.5498 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003854/0.4535, allocations: 2.768 MB / 0.5525 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001485/0.455, allocations: 0.877 MB / 0.5534 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006646/0.4617, allocations: 2.711 MB / 0.556 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006101/0.4678, allocations: 2.475 MB / 0.5584 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006029/0.4685, allocations: 103 kB / 0.5585 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01813/0.4866, allocations: 7.245 MB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007235/0.4874, allocations: 347 kB / 0.5659 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.4889, allocations: 0.5913 MB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01617/0.5051, allocations: 5.477 MB / 0.5719 GB, free: 9.625 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.5052, allocations: 0 / 0.5719 GB, free: 9.625 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5052, allocations: 0 / 0.5719 GB, free: 9.625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.341e-05/0.5052, allocations: 0 / 0.5719 GB, free: 9.625 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.005217/0.5105, allocations: 1.892 MB / 0.5737 GB, free: 7.684 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.5105, allocations: 8.031 kB / 0.5737 GB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002451/0.5108, allocations: 143.4 kB / 0.5739 GB, free: 7.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/0.5131, allocations: 311.3 kB / 0.5742 GB, free: 7.223 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.5143, allocations: 0.6417 MB / 0.5748 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002196/0.5145, allocations: 304.3 kB / 0.5751 GB, free: 6.191 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.5146, allocations: 79.94 kB / 0.5752 GB, free: 6.113 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00329/0.5179, allocations: 1.519 MB / 0.5766 GB, free: 4.512 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.518, allocations: 0 / 0.5766 GB, free: 4.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.5181, allocations: 43.98 kB / 0.5767 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-05/0.5182, allocations: 34 kB / 0.5767 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003198/0.5214, allocations: 1.346 MB / 0.578 GB, free: 3.086 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.008437/0.5298, allocations: 6.399 MB / 0.5843 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.5326, allocations: 0.9493 MB / 0.5852 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008688/0.5335, allocations: 451 kB / 0.5856 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0325/0.566, allocations: 17.14 MB / 0.6024 GB, free: 7.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.5661, allocations: 43.12 kB / 0.6024 GB, free: 7.469 MB / 446.1 MB Notification: Performance of pre-optimization done (n=59): time 2.965e-06/0.5661, allocations: 0 / 0.6024 GB, free: 7.469 MB / 446.1 MB Notification: Performance of matching and sorting (n=64): time 0.008987/0.5751, allocations: 2.943 MB / 0.6053 GB, free: 4.469 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.5752, allocations: 166.8 kB / 0.6054 GB, free: 4.266 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.5763, allocations: 0.8169 MB / 0.6062 GB, free: 3.441 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.5764, allocations: 45.69 kB / 0.6063 GB, free: 3.391 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003383/0.5767, allocations: 443.4 kB / 0.6067 GB, free: 2.953 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.5769, allocations: 213.1 kB / 0.6069 GB, free: 2.742 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/0.5773, allocations: 178.5 kB / 0.6071 GB, free: 2.559 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5774, allocations: 402.7 kB / 0.6075 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.5784, allocations: 445.7 kB / 0.6079 GB, free: 1.723 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.5796, allocations: 0.6616 MB / 0.6085 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.5815, allocations: 0.957 MB / 0.6095 GB, free: 15.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.5815, allocations: 4 kB / 0.6095 GB, free: 15.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002785/0.5843, allocations: 1.215 MB / 0.6107 GB, free: 14.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.5843, allocations: 8 kB / 0.6107 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.5843, allocations: 8 kB / 0.6107 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003707/0.5847, allocations: 97.42 kB / 0.6108 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003587/0.5883, allocations: 343.4 kB / 0.6111 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005663/0.594, allocations: 6.813 MB / 0.6177 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.5951, allocations: 115.9 kB / 0.6179 GB, free: 6.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.5953, allocations: 39.98 kB / 0.6179 GB, free: 6.695 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.0005861/0.5958, allocations: 347 kB / 0.6182 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.5961, allocations: 86.97 kB / 0.6183 GB, free: 6.266 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.5993, allocations: 2.18 MB / 0.6204 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.5993, allocations: 24.08 kB / 0.6205 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.5993, allocations: 4 kB / 0.6205 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.5993, allocations: 3.984 kB / 0.6205 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005322/0.6047, allocations: 3.466 MB / 0.6239 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.6047, allocations: 0 / 0.6239 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003413/0.6081, allocations: 287.6 kB / 0.6241 GB, free: 220 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003714/0.6085, allocations: 100.8 kB / 0.6242 GB, free: 116 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.681e-05/0.6086, allocations: 19.98 kB / 0.6242 GB, free: 96 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005913/0.6145, allocations: 6.78 MB / 0.6309 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6146, allocations: 0 / 0.6309 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003902/0.6185, allocations: 2.172 MB / 0.633 GB, free: 6.531 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000449/0.619, allocations: 183.8 kB / 0.6332 GB, free: 6.332 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.6193, allocations: 75.27 kB / 0.6332 GB, free: 6.258 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009803/0.6203, allocations: 91.84 kB / 0.6333 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003076/0.6206, allocations: 128.3 kB / 0.6334 GB, free: 6.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.971e-05/0.6207, allocations: 27.97 kB / 0.6335 GB, free: 6.016 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.6222, allocations: 0.8922 MB / 0.6343 GB, free: 5.117 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6222, allocations: 0 / 0.6343 GB, free: 5.117 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004048/0.6262, allocations: 1.222 MB / 0.6355 GB, free: 3.895 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.009168/0.6354, allocations: 3.938 MB / 0.6394 GB, free: 15.92 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005759/0.6412, allocations: 1.438 MB / 0.6408 GB, free: 14.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.6412, allocations: 0 / 0.6408 GB, free: 14.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003973/0.6452, allocations: 0.9056 MB / 0.6417 GB, free: 13.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003096/0.6483, allocations: 0.5549 MB / 0.6422 GB, free: 13.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0199/0.6683, allocations: 12.06 MB / 0.654 GB, free: 472 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008131/0.6691, allocations: 1.219 MB / 0.6552 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001224/0.6703, allocations: 0.4935 MB / 0.6557 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006246/0.671, allocations: 483.3 kB / 0.6561 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/0.671, allocations: 4 kB / 0.6561 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3021/0.9731, allocations: 66.74 MB / 0.7213 GB, free: 205.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/0.9733, allocations: 293.6 kB / 0.7216 GB, free: 204.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.422/6.396, allocations: 2.625 kB / 0.7216 GB, free: 204.8 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)