Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.5 MB / 230.7 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 96.59 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2423/0.2423, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.894e-05, allocations: 224 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1779, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.284/8.462, allocations: 2.77 GB / 3.265 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/8.462, allocations: 85.98 kB / 3.265 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.921/10.38, allocations: 0.5538 GB / 3.819 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.594e-06/10.38, allocations: 4 kB / 3.819 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.781e-05/10.38, allocations: 21.41 kB / 3.819 GB, free: 48.89 MB / 0.5261 GB 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.008737/10.39, allocations: 2.043 MB / 3.821 GB, free: 46.87 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/10.39, allocations: 11.98 kB / 3.821 GB, free: 46.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002499/10.39, allocations: 319.6 kB / 3.821 GB, free: 46.54 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/10.4, allocations: 0.685 MB / 3.822 GB, free: 45.83 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/10.4, allocations: 279.6 kB / 3.822 GB, free: 45.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/10.4, allocations: 44 kB / 3.822 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00149/10.4, allocations: 0.9839 MB / 3.823 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/10.4, allocations: 1.156 MB / 3.824 GB, free: 43.23 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.346e-05/10.4, allocations: 7.984 kB / 3.824 GB, free: 43.22 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.762e-05/10.4, allocations: 0 / 3.824 GB, free: 43.22 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-05/10.4, allocations: 45.94 kB / 3.824 GB, free: 43.18 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.06704/10.47, allocations: 36.34 MB / 3.86 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008225/10.47, allocations: 0.5032 MB / 3.86 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003924/10.47, allocations: 337.9 kB / 3.86 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002775/10.47, allocations: 398.7 kB / 3.861 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/10.47, allocations: 43 kB / 3.861 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=54): time 3.196e-06/10.47, allocations: 0 / 3.861 GB, free: 1.598 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.0045/10.47, allocations: 1.904 MB / 3.863 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/10.47, allocations: 133.1 kB / 3.863 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007006/10.47, allocations: 0.4942 MB / 3.863 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.547e-05/10.47, allocations: 41.62 kB / 3.863 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004322/10.47, allocations: 469 kB / 3.864 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/10.47, allocations: 192.4 kB / 3.864 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/10.47, allocations: 0 / 3.864 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002028/10.47, allocations: 382.5 kB / 3.864 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/10.48, allocations: 358.5 kB / 3.865 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008157/10.48, allocations: 0.572 MB / 3.865 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008185/10.48, allocations: 384.2 kB / 3.866 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/10.48, allocations: 4 kB / 3.866 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002077/10.48, allocations: 1.007 MB / 3.867 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/10.48, allocations: 8 kB / 3.867 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.034e-05/10.48, allocations: 7.953 kB / 3.867 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003681/10.48, allocations: 93.39 kB / 3.867 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003671/10.48, allocations: 407.3 kB / 3.867 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006532/10.49, allocations: 6.199 MB / 3.873 GB, free: 4.305 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/10.49, allocations: 131.9 kB / 3.873 GB, free: 4.176 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-05/10.49, allocations: 39.98 kB / 3.873 GB, free: 4.137 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real 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 () * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000361/10.49, allocations: 149.6 kB / 3.873 GB, free: 3.984 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001359/10.49, allocations: 0.6824 MB / 3.874 GB, free: 3.293 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/10.49, allocations: 71.16 kB / 3.874 GB, free: 3.223 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/10.5, allocations: 1.577 MB / 3.876 GB, free: 1.637 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/10.5, allocations: 15.98 kB / 3.876 GB, free: 1.621 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/10.5, allocations: 0 / 3.876 GB, free: 1.621 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/10.5, allocations: 3.984 kB / 3.876 GB, free: 1.617 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4428/10.94, allocations: 2.714 MB / 3.878 GB, free: 78 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/10.94, allocations: 1.25 kB / 3.878 GB, free: 78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003569/10.94, allocations: 345.7 kB / 3.879 GB, free: 78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003237/10.94, allocations: 95.92 kB / 3.879 GB, free: 77.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-05/10.94, allocations: 10 kB / 3.879 GB, free: 77.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005533/10.95, allocations: 6.183 MB / 3.885 GB, free: 72.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/10.95, allocations: 3.844 kB / 3.885 GB, free: 72.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/10.95, allocations: 1.737 MB / 3.886 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003836/10.95, allocations: 219.6 kB / 3.887 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/10.95, allocations: 18.67 kB / 3.887 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008402/10.95, allocations: 96.05 kB / 3.887 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/10.95, allocations: 125.2 kB / 3.887 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.43e-05/10.95, allocations: 35.62 kB / 3.887 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007023/10.95, allocations: 490.5 kB / 3.887 GB, free: 72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/10.95, allocations: 0 / 3.887 GB, free: 72 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006649/10.96, allocations: 1.236 MB / 3.889 GB, free: 72 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.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) * 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.01312/10.97, allocations: 4.629 MB / 3.893 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0044/10.98, allocations: 1.086 MB / 3.894 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/10.98, allocations: 3.969 kB / 3.894 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003365/10.98, allocations: 0.7554 MB / 3.895 GB, free: 70.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/10.98, allocations: 328.9 kB / 3.895 GB, free: 70.66 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008715/10.99, allocations: 2.23 MB / 3.897 GB, free: 70.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/10.99, allocations: 1.167 MB / 3.899 GB, free: 69.52 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001786/10.99, allocations: 0.523 MB / 3.899 GB, free: 69.51 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006454/11, allocations: 388.5 kB / 3.899 GB, free: 69.5 MB / 0.5417 GB Notification: Performance of SimCode: time 2.384e-06/11, allocations: 0 / 3.899 GB, free: 69.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09725/11.09, allocations: 50.77 MB / 3.949 GB, free: 68.03 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/11.09, allocations: 196.1 kB / 3.949 GB, free: 67.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.794/14.89, allocations: 0 / 3.949 GB, free: 67.84 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat