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.001073/0.001073, allocations: 100.4 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 45.91 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003699, allocations: 8 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1374, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.3273/0.4647, allocations: 50.04 MB / 0.5191 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.4835, allocations: 14.16 MB / 0.5329 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.4847, allocations: 28 kB / 0.533 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.4862, allocations: 389.9 kB / 0.5333 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01472/0.5009, allocations: 3.897 MB / 0.5371 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007203/0.5081, allocations: 1.907 MB / 0.539 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002911/0.5111, allocations: 1.573 MB / 0.5405 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.5124, allocations: 0.703 MB / 0.5412 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007352/0.5198, allocations: 3.645 MB / 0.5448 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006041/0.5259, allocations: 3.295 MB / 0.548 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000259/0.5262, allocations: 53.19 kB / 0.5481 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01551/0.5417, allocations: 7.121 MB / 0.555 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004816/0.5422, allocations: 255.2 kB / 0.5553 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005867/0.5428, allocations: 233.2 kB / 0.5555 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008868/0.5517, allocations: 3.747 MB / 0.5591 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.5517, allocations: 0 / 0.5591 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.348e-06/0.5517, allocations: 4 kB / 0.5591 GB, free: 10.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.325e-05/0.5518, allocations: 0 / 0.5591 GB, free: 10.02 MB / 398.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.006771/0.5586, allocations: 1.697 MB / 0.5608 GB, free: 8.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.5586, allocations: 16.03 kB / 0.5608 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002962/0.5589, allocations: 139.2 kB / 0.5609 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.5612, allocations: 328.5 kB / 0.5613 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.5626, allocations: 0.629 MB / 0.5619 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.5628, allocations: 299.6 kB / 0.5622 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.563, allocations: 84 kB / 0.5622 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003167/0.5661, allocations: 1.532 MB / 0.5637 GB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.5662, allocations: 7.938 kB / 0.5637 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.5663, allocations: 36 kB / 0.5638 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/0.5664, allocations: 45.97 kB / 0.5638 GB, free: 4.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00312/0.5695, allocations: 1.381 MB / 0.5652 GB, free: 3.613 MB / 398.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.009024/0.5785, allocations: 6.43 MB / 0.5714 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/0.5815, allocations: 1.011 MB / 0.5724 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03398/0.6155, allocations: 17.24 MB / 0.5893 GB, free: 8.277 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/0.6156, allocations: 43.12 kB / 0.5893 GB, free: 8.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=59): time 4.408e-06/0.6156, allocations: 3.938 kB / 0.5893 GB, free: 8.223 MB / 430.1 MB Notification: Performance of matching and sorting (n=64): time 0.008631/0.6242, allocations: 3.063 MB / 0.5923 GB, free: 5.102 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/0.6244, allocations: 166.8 kB / 0.5925 GB, free: 4.902 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.6254, allocations: 0.809 MB / 0.5933 GB, free: 4.086 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.558e-05/0.6255, allocations: 45.7 kB / 0.5933 GB, free: 4.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.6259, allocations: 435.4 kB / 0.5937 GB, free: 3.605 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.6261, allocations: 224.9 kB / 0.5939 GB, free: 3.383 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.6261, allocations: 16 kB / 0.5939 GB, free: 3.367 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.6263, allocations: 402.7 kB / 0.5943 GB, free: 2.965 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009033/0.6272, allocations: 449.7 kB / 0.5948 GB, free: 2.527 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.6283, allocations: 0.6766 MB / 0.5954 GB, free: 1.754 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009197/0.6292, allocations: 478.8 kB / 0.5959 GB, free: 1.289 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6292, allocations: 0 / 0.5959 GB, free: 1.289 MB / 430.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002529/0.6318, allocations: 1.235 MB / 0.5971 GB, free: 44 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.6318, allocations: 13.97 kB / 0.5971 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.6318, allocations: 8 kB / 0.5971 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.6322, allocations: 93.25 kB / 0.5972 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003208/0.6354, allocations: 343.4 kB / 0.5975 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005664/0.6411, allocations: 6.425 MB / 0.6038 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.6425, allocations: 132.1 kB / 0.6039 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.994e-05/0.6426, allocations: 39.98 kB / 0.604 GB, free: 8.453 MB / 446.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 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.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 (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000591/0.6432, allocations: 342.2 kB / 0.6043 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.6434, allocations: 91.02 kB / 0.6044 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.6467, allocations: 2.27 MB / 0.6066 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.6467, allocations: 19.97 kB / 0.6066 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.6468, allocations: 0 / 0.6066 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.6468, allocations: 11.92 kB / 0.6066 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005484/0.6523, allocations: 3.517 MB / 0.6101 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.6523, allocations: 3.984 kB / 0.6101 GB, free: 2.113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003126/0.6554, allocations: 303.7 kB / 0.6103 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003951/0.6559, allocations: 96.78 kB / 0.6104 GB, free: 1.719 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.32e-05/0.656, allocations: 15.98 kB / 0.6105 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005666/0.6616, allocations: 6.402 MB / 0.6167 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.6617, allocations: 4.031 kB / 0.6167 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003839/0.6655, allocations: 2.273 MB / 0.6189 GB, free: 8.406 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006249/0.6662, allocations: 338.8 kB / 0.6193 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.6664, allocations: 27.98 kB / 0.6193 GB, free: 8.027 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/0.6673, allocations: 111.8 kB / 0.6194 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002762/0.6675, allocations: 128.3 kB / 0.6195 GB, free: 7.793 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.556e-05/0.6676, allocations: 31.92 kB / 0.6195 GB, free: 7.762 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001196/0.6688, allocations: 0.8805 MB / 0.6204 GB, free: 6.875 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6688, allocations: 4 kB / 0.6204 GB, free: 6.871 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00427/0.6731, allocations: 1.234 MB / 0.6216 GB, free: 5.637 MB / 462.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 (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00981/0.6829, allocations: 4.369 MB / 0.6259 GB, free: 1.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005003/0.688, allocations: 1.297 MB / 0.6271 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.688, allocations: 0 / 0.6271 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/0.6917, allocations: 0.9135 MB / 0.628 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.6946, allocations: 0.5254 MB / 0.6285 GB, free: 14.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.7108, allocations: 11.78 MB / 0.6401 GB, free: 2.402 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008061/0.7116, allocations: 1.25 MB / 0.6413 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001248/0.7129, allocations: 0.4983 MB / 0.6418 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006021/0.7135, allocations: 483.3 kB / 0.6422 GB, free: 148 kB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7135, allocations: 3.938 kB / 0.6422 GB, free: 144 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3461/1.06, allocations: 65.83 MB / 0.7065 GB, free: 186 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/1.06, allocations: 264 kB / 0.7068 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.87/5.93, allocations: 6.109 kB / 0.7068 GB, free: 185.7 MB / 0.5294 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat