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.001033/0.001033, allocations: 176.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 241 MB, free: 11.85 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009521/0.0009521, allocations: 102.8 kB / 292.1 MB, free: 10.89 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.3766/0.3766, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003256, allocations: 8 kB / 460 MB, free: 1.395 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4202, allocations: 61.89 MB / 0.5096 GB, free: 37.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.931/7.352, allocations: 2.771 GB / 3.28 GB, free: 8.309 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003949/7.352, allocations: 93.91 kB / 3.28 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.63/9.982, allocations: 0.5608 GB / 3.841 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.146e-06/9.982, allocations: 0 / 3.841 GB, free: 44.07 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000108/9.982, allocations: 27.03 kB / 3.841 GB, free: 44.07 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.01024/9.992, allocations: 2.13 MB / 3.843 GB, free: 42.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.83e-05/9.992, allocations: 11.03 kB / 3.843 GB, free: 42.93 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007379/9.993, allocations: 139.9 kB / 3.843 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002939/9.996, allocations: 322.5 kB / 3.844 GB, free: 42.78 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/9.998, allocations: 0.676 MB / 3.844 GB, free: 42.37 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002923/9.999, allocations: 299.7 kB / 3.845 GB, free: 42.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004026/9.999, allocations: 86 kB / 3.845 GB, free: 42.06 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004004/10, allocations: 1.523 MB / 3.846 GB, free: 41.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.896e-05/10, allocations: 7.562 kB / 3.846 GB, free: 41.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001812/10, allocations: 38.69 kB / 3.846 GB, free: 41.38 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.845e-05/10, allocations: 37.16 kB / 3.846 GB, free: 41.38 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/10.01, allocations: 1.373 MB / 3.848 GB, free: 41.02 MB / 0.5261 GB 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.009554/10.02, allocations: 6.415 MB / 3.854 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0029/10.02, allocations: 0.9926 MB / 3.855 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02954/10.05, allocations: 15.55 MB / 3.87 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.098e-05/10.05, allocations: 51.06 kB / 3.87 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 3.016e-06/10.05, allocations: 0 / 3.87 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.009658/10.06, allocations: 3.026 MB / 3.873 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.043e-05/10.06, allocations: 162.8 kB / 3.873 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/10.06, allocations: 0.7211 MB / 3.874 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00012/10.06, allocations: 45.7 kB / 3.874 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/10.06, allocations: 442.8 kB / 3.874 GB, free: 18.85 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/10.06, allocations: 220.9 kB / 3.875 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.392e-05/10.06, allocations: 16 kB / 3.875 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001746/10.06, allocations: 401.6 kB / 3.875 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008939/10.06, allocations: 450.7 kB / 3.875 GB, free: 17.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/10.06, allocations: 0.6705 MB / 3.876 GB, free: 17.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009544/10.06, allocations: 469.2 kB / 3.877 GB, free: 16.83 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/10.06, allocations: 0 / 3.877 GB, free: 16.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002611/10.07, allocations: 1.232 MB / 3.878 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/10.07, allocations: 11.89 kB / 3.878 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/10.07, allocations: 11.95 kB / 3.878 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003969/10.07, allocations: 86.73 kB / 3.878 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003725/10.07, allocations: 410.3 kB / 3.878 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005853/10.08, allocations: 6.462 MB / 3.885 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/10.08, allocations: 145.5 kB / 3.885 GB, free: 8.547 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002122/10.08, allocations: 39.89 kB / 3.885 GB, free: 8.512 MB / 0.5261 GB 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.0009102/10.08, allocations: 330.8 kB / 3.885 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003594/10.08, allocations: 86.97 kB / 3.885 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003524/10.08, allocations: 2.246 MB / 3.887 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.861e-05/10.08, allocations: 26.38 kB / 3.887 GB, free: 6.141 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/10.08, allocations: 0 / 3.887 GB, free: 6.141 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/10.08, allocations: 7.891 kB / 3.887 GB, free: 6.137 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006496/10.09, allocations: 3.508 MB / 3.891 GB, free: 2.805 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/10.09, allocations: 6.25 kB / 3.891 GB, free: 2.801 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003692/10.09, allocations: 363.5 kB / 3.891 GB, free: 2.445 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003987/10.09, allocations: 112.4 kB / 3.891 GB, free: 2.336 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.962e-05/10.09, allocations: 15.98 kB / 3.891 GB, free: 2.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007161/10.1, allocations: 6.444 MB / 3.898 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/10.1, allocations: 7.406 kB / 3.898 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004485/10.11, allocations: 2.253 MB / 3.9 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008737/10.11, allocations: 346.7 kB / 3.9 GB, free: 8.664 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004001/10.11, allocations: 32.05 kB / 3.9 GB, free: 8.633 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/10.11, allocations: 111.8 kB / 3.9 GB, free: 8.523 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/10.11, allocations: 132.3 kB / 3.9 GB, free: 8.395 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.9e-05/10.11, allocations: 31.05 kB / 3.9 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001776/10.11, allocations: 0.8766 MB / 3.901 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/10.11, allocations: 0 / 3.901 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008118/10.12, allocations: 1.303 MB / 3.903 GB, free: 6.184 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * 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.01733/10.14, allocations: 4.925 MB / 3.907 GB, free: 1.484 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006064/10.14, allocations: 1.316 MB / 3.909 GB, free: 184 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/10.14, allocations: 0 / 3.909 GB, free: 184 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.4177/10.56, allocations: 0.9142 MB / 3.91 GB, free: 64.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003014/10.56, allocations: 0.5275 MB / 3.91 GB, free: 64.14 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/10.58, allocations: 11.82 MB / 3.922 GB, free: 57.93 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/10.58, allocations: 1.239 MB / 3.923 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001425/10.58, allocations: 497.8 kB / 3.923 GB, free: 57.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00058/10.59, allocations: 488.2 kB / 3.924 GB, free: 57.21 MB / 0.5417 GB Notification: Performance of SimCode: time 1.433e-06/10.59, allocations: 0 / 3.924 GB, free: 57.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1348/10.72, allocations: 65.87 MB / 3.988 GB, free: 55.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/10.72, allocations: 265.3 kB / 3.988 GB, free: 55.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.823/15.54, allocations: 0 / 3.988 GB, free: 55.05 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