Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001554/0.001554, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 97.47 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.545/0.545, allocations: 43.55 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004743, allocations: 20 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1314, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.4001/0.5315, allocations: 49.98 MB / 0.5276 GB, free: 15.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02396/0.5555, allocations: 14.16 MB / 0.5415 GB, free: 5.637 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.557, allocations: 28.94 kB / 0.5415 GB, free: 5.621 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.559, allocations: 395.5 kB / 0.5419 GB, free: 5.402 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01661/0.5756, allocations: 3.876 MB / 0.5457 GB, free: 3.469 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00942/0.5851, allocations: 1.908 MB / 0.5475 GB, free: 2.422 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003717/0.5889, allocations: 1.571 MB / 0.549 GB, free: 1.641 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001831/0.5908, allocations: 0.7122 MB / 0.5497 GB, free: 1.383 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01088/0.6017, allocations: 3.635 MB / 0.5533 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01028/0.612, allocations: 3.294 MB / 0.5565 GB, free: 300 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003624/0.6124, allocations: 54.44 kB / 0.5566 GB, free: 300 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02236/0.6348, allocations: 7.109 MB / 0.5635 GB, free: 14.07 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007142/0.6356, allocations: 262.5 kB / 0.5638 GB, free: 13.89 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005848/0.6362, allocations: 228.8 kB / 0.564 GB, free: 13.78 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01075/0.647, allocations: 3.735 MB / 0.5676 GB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.647, allocations: 4 kB / 0.5676 GB, free: 11.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.647, allocations: 0 / 0.5676 GB, free: 11.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.679e-05/0.6471, allocations: 0 / 0.5676 GB, free: 11.39 MB / 394.7 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.007416/0.6545, allocations: 1.695 MB / 0.5693 GB, free: 9.648 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.6546, allocations: 12.03 kB / 0.5693 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004206/0.655, allocations: 139.2 kB / 0.5694 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003396/0.6584, allocations: 326.5 kB / 0.5697 GB, free: 9.172 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.6605, allocations: 0.6367 MB / 0.5704 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003406/0.6608, allocations: 303.6 kB / 0.5706 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002437/0.6611, allocations: 76 kB / 0.5707 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00544/0.6665, allocations: 1.531 MB / 0.5722 GB, free: 6.461 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.6666, allocations: 8 kB / 0.5722 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/0.6668, allocations: 32.88 kB / 0.5723 GB, free: 6.422 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.937e-05/0.6669, allocations: 42 kB / 0.5723 GB, free: 6.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006081/0.673, allocations: 1.385 MB / 0.5736 GB, free: 4.996 MB / 394.7 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.01514/0.6882, allocations: 6.436 MB / 0.5799 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00522/0.6935, allocations: 1.011 MB / 0.5809 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05757/0.7511, allocations: 15.82 MB / 0.5964 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.7512, allocations: 43.06 kB / 0.5964 GB, free: 11.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.467e-06/0.7512, allocations: 0 / 0.5964 GB, free: 11.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.01507/0.7663, allocations: 3.057 MB / 0.5994 GB, free: 8.219 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.7665, allocations: 174.7 kB / 0.5996 GB, free: 8.012 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.7682, allocations: 0.8051 MB / 0.6003 GB, free: 7.195 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002417/0.7685, allocations: 49.7 kB / 0.6004 GB, free: 7.141 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.769, allocations: 449.9 kB / 0.6008 GB, free: 6.695 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.7693, allocations: 217.1 kB / 0.601 GB, free: 6.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-05/0.7694, allocations: 16 kB / 0.601 GB, free: 6.465 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.7696, allocations: 346.8 kB / 0.6014 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.7715, allocations: 453.7 kB / 0.6018 GB, free: 5.672 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.7736, allocations: 0.6766 MB / 0.6025 GB, free: 4.898 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.7755, allocations: 482.8 kB / 0.6029 GB, free: 4.426 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/0.7755, allocations: 4 kB / 0.6029 GB, free: 4.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004631/0.7802, allocations: 1.181 MB / 0.6041 GB, free: 3.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.7803, allocations: 18.55 kB / 0.6041 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.7803, allocations: 8 kB / 0.6041 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005689/0.7809, allocations: 96.41 kB / 0.6042 GB, free: 3.113 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006857/0.7878, allocations: 347.4 kB / 0.6045 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009341/0.7971, allocations: 6.412 MB / 0.6108 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.7992, allocations: 139.9 kB / 0.6109 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002046/0.7994, allocations: 36 kB / 0.611 GB, free: 11.64 MB / 442.7 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.0008809/0.8003, allocations: 339.7 kB / 0.6113 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.8006, allocations: 86.97 kB / 0.6114 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00628/0.8069, allocations: 2.262 MB / 0.6136 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/0.807, allocations: 27.92 kB / 0.6136 GB, free: 8.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.807, allocations: 2.438 kB / 0.6136 GB, free: 8.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.8071, allocations: 3.984 kB / 0.6136 GB, free: 8.906 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.8173, allocations: 3.509 MB / 0.617 GB, free: 5.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/0.8174, allocations: 4 kB / 0.617 GB, free: 5.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006595/0.824, allocations: 299.7 kB / 0.6173 GB, free: 5.035 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006268/0.8247, allocations: 112.6 kB / 0.6174 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.8249, allocations: 19.98 kB / 0.6175 GB, free: 4.902 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00967/0.8346, allocations: 6.395 MB / 0.6237 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.8346, allocations: 0 / 0.6237 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00684/0.8415, allocations: 2.277 MB / 0.6259 GB, free: 11.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/0.8424, allocations: 342.8 kB / 0.6262 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004404/0.8429, allocations: 27.98 kB / 0.6263 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.8446, allocations: 111.9 kB / 0.6264 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000521/0.8452, allocations: 128.3 kB / 0.6265 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.8453, allocations: 23.98 kB / 0.6265 GB, free: 10.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.8474, allocations: 0.8883 MB / 0.6274 GB, free: 10.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.8474, allocations: 4 kB / 0.6274 GB, free: 10.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005844/0.8533, allocations: 1.226 MB / 0.6286 GB, free: 8.855 MB / 458.7 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.01664/0.87, allocations: 4.348 MB / 0.6328 GB, free: 4.449 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009427/0.8794, allocations: 1.297 MB / 0.6341 GB, free: 3.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/0.8795, allocations: 3.906 kB / 0.6341 GB, free: 3.156 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007509/0.887, allocations: 0.9095 MB / 0.635 GB, free: 2.246 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005016/0.8921, allocations: 0.532 MB / 0.6355 GB, free: 1.715 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/0.9184, allocations: 11.8 MB / 0.647 GB, free: 5.605 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.9196, allocations: 1.23 MB / 0.6482 GB, free: 4.348 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/0.9209, allocations: 487.3 kB / 0.6487 GB, free: 3.871 MB / 474.7 MB Notification: Performance of SimCode: time 1.483e-06/0.9209, allocations: 8 kB / 0.6487 GB, free: 3.863 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.836/5.757, allocations: 67.86 MB / 0.715 GB, free: 147.9 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat