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.0009839/0.0009842, allocations: 96.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001024, allocations: 201.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002348/0.0002349, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 63.56 MB / 483.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.2757/0.3816, allocations: 59.6 MB / 0.5301 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02004/0.4017, allocations: 17.24 MB / 0.5469 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.4029, allocations: 28.06 kB / 0.5469 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.4042, allocations: 389.1 kB / 0.5473 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0136/0.4178, allocations: 4.065 MB / 0.5513 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006647/0.4245, allocations: 2.026 MB / 0.5532 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004019/0.4285, allocations: 3.908 MB / 0.5571 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.4298, allocations: 0.7441 MB / 0.5578 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00518/0.435, allocations: 2.549 MB / 0.5603 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004229/0.4392, allocations: 2.439 MB / 0.5627 GB, free: 7.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002234/0.4394, allocations: 54.62 kB / 0.5627 GB, free: 7.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01323/0.4527, allocations: 7.228 MB / 0.5698 GB, free: 180 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004691/0.4532, allocations: 275.1 kB / 0.57 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009276/0.4541, allocations: 0.5656 MB / 0.5706 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.4644, allocations: 5.394 MB / 0.5758 GB, free: 9.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4644, allocations: 0 / 0.5758 GB, free: 9.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4644, allocations: 0 / 0.5758 GB, free: 9.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.773e-05/0.4645, allocations: 0 / 0.5758 GB, free: 9.926 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.004465/0.469, allocations: 1.707 MB / 0.5775 GB, free: 8.168 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.469, allocations: 8.031 kB / 0.5775 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000288/0.4693, allocations: 143.4 kB / 0.5777 GB, free: 8.012 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002321/0.4716, allocations: 319.5 kB / 0.578 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.4727, allocations: 0.6533 MB / 0.5786 GB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.4729, allocations: 296.2 kB / 0.5789 GB, free: 6.664 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.4731, allocations: 87.94 kB / 0.579 GB, free: 6.578 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.4765, allocations: 1.543 MB / 0.5805 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.4765, allocations: 0 / 0.5805 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.4767, allocations: 43.98 kB / 0.5805 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.677e-05/0.4767, allocations: 49.92 kB / 0.5806 GB, free: 4.859 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003402/0.4801, allocations: 1.385 MB / 0.5819 GB, free: 3.473 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.008673/0.4888, allocations: 6.441 MB / 0.5882 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/0.4917, allocations: 1.013 MB / 0.5892 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009226/0.4927, allocations: 467.1 kB / 0.5896 GB, free: 11.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03369/0.5264, allocations: 17.23 MB / 0.6065 GB, free: 7.684 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.5264, allocations: 39.12 kB / 0.6065 GB, free: 7.633 MB / 446.1 MB Notification: Performance of pre-optimization done (n=59): time 3.176e-06/0.5265, allocations: 3.938 kB / 0.6065 GB, free: 7.629 MB / 446.1 MB Notification: Performance of matching and sorting (n=64): time 0.00874/0.5352, allocations: 3.067 MB / 0.6095 GB, free: 4.504 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.5353, allocations: 166.7 kB / 0.6097 GB, free: 4.305 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.5364, allocations: 0.8129 MB / 0.6105 GB, free: 3.484 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.5365, allocations: 53.62 kB / 0.6105 GB, free: 3.426 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/0.5368, allocations: 447.4 kB / 0.6109 GB, free: 2.984 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.537, allocations: 213 kB / 0.6111 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.5371, allocations: 85.67 kB / 0.6112 GB, free: 2.684 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.5373, allocations: 394.8 kB / 0.6116 GB, free: 2.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009585/0.5383, allocations: 453.7 kB / 0.612 GB, free: 1.844 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.5394, allocations: 0.685 MB / 0.6127 GB, free: 1.062 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.5413, allocations: 1 MB / 0.6137 GB, free: 15.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.607e-06/0.5413, allocations: 3.938 kB / 0.6137 GB, free: 15.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002642/0.5439, allocations: 1.243 MB / 0.6149 GB, free: 14.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.544, allocations: 8 kB / 0.6149 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.544, allocations: 8 kB / 0.6149 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/0.5444, allocations: 92.78 kB / 0.615 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/0.5478, allocations: 351.7 kB / 0.6153 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005529/0.5533, allocations: 6.375 MB / 0.6216 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.5544, allocations: 135.9 kB / 0.6217 GB, free: 7.211 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.5545, allocations: 43.98 kB / 0.6217 GB, free: 7.168 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.0005342/0.5551, allocations: 335.6 kB / 0.6221 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.5553, allocations: 90.97 kB / 0.6221 GB, free: 6.742 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.5587, allocations: 2.227 MB / 0.6243 GB, free: 4.496 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.5588, allocations: 19.97 kB / 0.6243 GB, free: 4.477 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5588, allocations: 4 kB / 0.6243 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.5588, allocations: 7.922 kB / 0.6243 GB, free: 4.465 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005257/0.5641, allocations: 3.525 MB / 0.6278 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.5641, allocations: 0 / 0.6278 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003284/0.5674, allocations: 315.7 kB / 0.6281 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003529/0.5677, allocations: 96.78 kB / 0.6282 GB, free: 476 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/0.5678, allocations: 19.98 kB / 0.6282 GB, free: 456 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005387/0.5732, allocations: 6.37 MB / 0.6344 GB, free: 9.523 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5732, allocations: 3.938 kB / 0.6344 GB, free: 9.52 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.5768, allocations: 2.219 MB / 0.6366 GB, free: 7.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004222/0.5773, allocations: 346.9 kB / 0.6369 GB, free: 6.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.5775, allocations: 27.98 kB / 0.6369 GB, free: 6.883 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008754/0.5783, allocations: 107.8 kB / 0.6371 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.5786, allocations: 128.2 kB / 0.6372 GB, free: 6.652 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.5787, allocations: 23.98 kB / 0.6372 GB, free: 6.629 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.5799, allocations: 0.8961 MB / 0.6381 GB, free: 5.727 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5799, allocations: 0 / 0.6381 GB, free: 5.727 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003172/0.5831, allocations: 1.222 MB / 0.6393 GB, free: 4.504 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.008506/0.5916, allocations: 3.979 MB / 0.6431 GB, free: 492 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004888/0.5965, allocations: 1.301 MB / 0.6444 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5965, allocations: 0 / 0.6444 GB, free: 15.18 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003835/0.6003, allocations: 0.9174 MB / 0.6453 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/0.6036, allocations: 0.5336 MB / 0.6458 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02052/0.6241, allocations: 12.22 MB / 0.6578 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000807/0.625, allocations: 1.219 MB / 0.659 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001154/0.6261, allocations: 0.5051 MB / 0.6595 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006369/0.6268, allocations: 483.3 kB / 0.6599 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of SimCode: time 7.12e-07/0.6268, allocations: 0 / 0.6599 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2884/0.9152, allocations: 65.36 MB / 0.7237 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/0.9154, allocations: 290.4 kB / 0.724 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.921/5.836, allocations: 4 kB / 0.724 GB, free: 182.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/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)