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.001355/0.001355, allocations: 106.8 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001475, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.12 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 75.88 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1205, allocations: 62.44 MB / 479.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.3106/0.4311, allocations: 60.72 MB / 0.5274 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02135/0.4525, allocations: 17.52 MB / 0.5446 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.4543, allocations: 29 kB / 0.5446 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.4562, allocations: 387.1 kB / 0.5449 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01973/0.476, allocations: 4.05 MB / 0.5489 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008524/0.4845, allocations: 2.036 MB / 0.5509 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004548/0.4891, allocations: 3.909 MB / 0.5547 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.4904, allocations: 0.758 MB / 0.5555 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006897/0.4973, allocations: 2.566 MB / 0.558 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006265/0.5036, allocations: 2.448 MB / 0.5603 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004633/0.5041, allocations: 60 kB / 0.5604 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02056/0.5246, allocations: 7.232 MB / 0.5675 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008251/0.5255, allocations: 287.1 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.5273, allocations: 0.5444 MB / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01733/0.5447, allocations: 5.445 MB / 0.5736 GB, free: 7.953 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.5447, allocations: 0 / 0.5736 GB, free: 7.953 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5447, allocations: 0 / 0.5736 GB, free: 7.953 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.689e-05/0.5448, allocations: 0 / 0.5736 GB, free: 7.953 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.006591/0.5514, allocations: 1.884 MB / 0.5754 GB, free: 6.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.5515, allocations: 8.031 kB / 0.5754 GB, free: 6.012 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004037/0.5519, allocations: 143.4 kB / 0.5756 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002596/0.5545, allocations: 307.4 kB / 0.5759 GB, free: 5.562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.5558, allocations: 0.6454 MB / 0.5765 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/0.5561, allocations: 308.3 kB / 0.5768 GB, free: 4.523 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002245/0.5563, allocations: 83.94 kB / 0.5769 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.56, allocations: 1.507 MB / 0.5783 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.56, allocations: 3.938 kB / 0.5783 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.5602, allocations: 44.48 kB / 0.5784 GB, free: 2.805 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.008e-05/0.5602, allocations: 34 kB / 0.5784 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/0.5634, allocations: 1.342 MB / 0.5797 GB, free: 1.426 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.008722/0.5722, allocations: 6.396 MB / 0.586 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002854/0.575, allocations: 0.9556 MB / 0.5869 GB, free: 9.574 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009489/0.576, allocations: 455 kB / 0.5873 GB, free: 9.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03355/0.6096, allocations: 17.12 MB / 0.6041 GB, free: 5.859 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.861e-05/0.6097, allocations: 43.11 kB / 0.6041 GB, free: 5.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=59): time 6.271e-06/0.6097, allocations: 3.984 kB / 0.6041 GB, free: 5.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=64): time 0.009971/0.6197, allocations: 2.953 MB / 0.607 GB, free: 2.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.6199, allocations: 166.8 kB / 0.6071 GB, free: 2.594 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.6212, allocations: 0.8129 MB / 0.6079 GB, free: 1.773 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.6214, allocations: 45.7 kB / 0.608 GB, free: 1.723 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004468/0.6218, allocations: 443.5 kB / 0.6084 GB, free: 1.285 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002329/0.6221, allocations: 213.1 kB / 0.6086 GB, free: 1.074 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000368/0.6224, allocations: 182.5 kB / 0.6088 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.6227, allocations: 394.7 kB / 0.6092 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009848/0.6237, allocations: 437.7 kB / 0.6096 GB, free: 72 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.6249, allocations: 0.6698 MB / 0.6102 GB, free: 15.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.6268, allocations: 0.9687 MB / 0.6112 GB, free: 14.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.6268, allocations: 0 / 0.6112 GB, free: 14.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002794/0.6296, allocations: 1.219 MB / 0.6124 GB, free: 13.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.6297, allocations: 8 kB / 0.6124 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.6297, allocations: 9.625 kB / 0.6124 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004727/0.6302, allocations: 88.8 kB / 0.6125 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003469/0.6337, allocations: 331.8 kB / 0.6128 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006465/0.6401, allocations: 6.372 MB / 0.619 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.6415, allocations: 115.8 kB / 0.6191 GB, free: 5.559 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001824/0.6417, allocations: 39.98 kB / 0.6192 GB, free: 5.52 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.0008285/0.6425, allocations: 343.2 kB / 0.6195 GB, free: 5.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.6429, allocations: 86.97 kB / 0.6196 GB, free: 5.094 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003832/0.6467, allocations: 2.195 MB / 0.6217 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.6468, allocations: 19.97 kB / 0.6217 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.6468, allocations: 4.031 kB / 0.6217 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.6468, allocations: 11.97 kB / 0.6217 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.6529, allocations: 3.462 MB / 0.6251 GB, free: 15.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.6529, allocations: 64 / 0.6251 GB, free: 15.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00335/0.6563, allocations: 291.6 kB / 0.6254 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.6567, allocations: 100.8 kB / 0.6255 GB, free: 14.92 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.647e-05/0.6568, allocations: 19.98 kB / 0.6255 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006013/0.6628, allocations: 6.347 MB / 0.6317 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6628, allocations: 0 / 0.6317 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/0.6669, allocations: 2.168 MB / 0.6338 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004694/0.6674, allocations: 183.8 kB / 0.634 GB, free: 5.602 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003688/0.6678, allocations: 79.2 kB / 0.6341 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.6688, allocations: 91.88 kB / 0.6342 GB, free: 5.434 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/0.6692, allocations: 124.2 kB / 0.6343 GB, free: 5.312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/0.6692, allocations: 27.97 kB / 0.6343 GB, free: 5.285 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001484/0.6707, allocations: 0.8922 MB / 0.6352 GB, free: 4.387 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6707, allocations: 0 / 0.6352 GB, free: 4.387 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005375/0.6761, allocations: 1.226 MB / 0.6364 GB, free: 3.16 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.0117/0.6878, allocations: 3.934 MB / 0.6402 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005672/0.6936, allocations: 1.27 MB / 0.6415 GB, free: 13.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6936, allocations: 3.938 kB / 0.6415 GB, free: 13.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004108/0.6977, allocations: 0.8978 MB / 0.6424 GB, free: 13.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/0.7009, allocations: 0.527 MB / 0.6429 GB, free: 12.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/0.7244, allocations: 12.03 MB / 0.6546 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.7254, allocations: 1.219 MB / 0.6558 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001466/0.7269, allocations: 0.5124 MB / 0.6563 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00071/0.7276, allocations: 483.3 kB / 0.6568 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of SimCode: time 2.975e-06/0.7277, allocations: 0 / 0.6568 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3552/1.083, allocations: 65.72 MB / 0.7209 GB, free: 202.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/1.083, allocations: 296 kB / 0.7212 GB, free: 202.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.179/6.262, allocations: 4.156 kB / 0.7212 GB, free: 202.4 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)