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.001081/0.001081, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.551/1.551, allocations: 221.3 MB / 236 MB, free: 2.918 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.0009558/0.0009556, allocations: 93.67 kB / 287 MB, free: 192 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2623/0.2623, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.645e-05/4.668e-05, allocations: 4 kB / 451.9 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1781, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.528/8.706, allocations: 2.771 GB / 3.272 GB, free: 95.91 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/8.706, allocations: 89.83 kB / 3.272 GB, free: 95.87 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.543/11.25, allocations: 0.5592 GB / 3.832 GB, free: 49.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.234e-06/11.25, allocations: 0 / 3.832 GB, free: 49.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001025/11.25, allocations: 29.58 kB / 3.832 GB, free: 49.69 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.009584/11.26, allocations: 2.041 MB / 3.834 GB, free: 48.87 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/11.26, allocations: 11.19 kB / 3.834 GB, free: 48.87 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005549/11.26, allocations: 136.9 kB / 3.834 GB, free: 48.83 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002899/11.26, allocations: 316.5 kB / 3.834 GB, free: 48.78 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/11.26, allocations: 0.6878 MB / 3.835 GB, free: 48.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/11.26, allocations: 302.6 kB / 3.835 GB, free: 48.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003466/11.27, allocations: 82.03 kB / 3.835 GB, free: 48.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00372/11.27, allocations: 1.491 MB / 3.837 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.49e-05/11.27, allocations: 3.562 kB / 3.837 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/11.27, allocations: 41.41 kB / 3.837 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-05/11.27, allocations: 40.69 kB / 3.837 GB, free: 47.97 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/11.27, allocations: 1.27 MB / 3.838 GB, free: 47.96 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.00878/11.28, allocations: 6.413 MB / 3.844 GB, free: 43.89 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/11.28, allocations: 0.8965 MB / 3.845 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005475/11.28, allocations: 388.2 kB / 3.845 GB, free: 43.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02988/11.31, allocations: 15.61 MB / 3.861 GB, free: 34.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/11.31, allocations: 42.53 kB / 3.861 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 3.135e-06/11.31, allocations: 0 / 3.861 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.007251/11.32, allocations: 2.502 MB / 3.863 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/11.32, allocations: 167.4 kB / 3.863 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/11.32, allocations: 0.7121 MB / 3.864 GB, free: 33.54 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/11.32, allocations: 45.98 kB / 3.864 GB, free: 33.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003613/11.32, allocations: 440.9 kB / 3.865 GB, free: 33.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/11.32, allocations: 215.1 kB / 3.865 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/11.32, allocations: 13.75 kB / 3.865 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001569/11.32, allocations: 410.3 kB / 3.865 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/11.32, allocations: 378 kB / 3.866 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/11.32, allocations: 0.6023 MB / 3.866 GB, free: 32.61 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006687/11.32, allocations: 401.7 kB / 3.866 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/11.32, allocations: 3.281 kB / 3.866 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00185/11.33, allocations: 1.101 MB / 3.868 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/11.33, allocations: 7.844 kB / 3.868 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/11.33, allocations: 10.69 kB / 3.868 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000365/11.33, allocations: 90.23 kB / 3.868 GB, free: 32.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003498/11.33, allocations: 410.9 kB / 3.868 GB, free: 32.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005526/11.34, allocations: 6.408 MB / 3.874 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/11.34, allocations: 139.4 kB / 3.874 GB, free: 26.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/11.34, allocations: 42.28 kB / 3.874 GB, free: 26.69 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 () * 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.000436/11.34, allocations: 174.6 kB / 3.875 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/11.34, allocations: 86.5 kB / 3.875 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/11.34, allocations: 2.13 MB / 3.877 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/11.34, allocations: 21.48 kB / 3.877 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/11.34, allocations: 3.953 kB / 3.877 GB, free: 26.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/11.34, allocations: 3.797 kB / 3.877 GB, free: 26.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005084/11.35, allocations: 3.376 MB / 3.88 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/11.35, allocations: 7.594 kB / 3.88 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003369/11.35, allocations: 366.9 kB / 3.88 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003774/11.35, allocations: 99.95 kB / 3.881 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-05/11.35, allocations: 28.27 kB / 3.881 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005427/11.36, allocations: 6.391 MB / 3.887 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/11.36, allocations: 0 / 3.887 GB, free: 20.01 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/11.36, allocations: 2.064 MB / 3.889 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007154/11.36, allocations: 350.2 kB / 3.889 GB, free: 19.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003963/11.36, allocations: 30.5 kB / 3.889 GB, free: 19.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/11.36, allocations: 109.1 kB / 3.889 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003629/11.36, allocations: 138 kB / 3.889 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.737e-05/11.36, allocations: 28.28 kB / 3.889 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001694/11.36, allocations: 0.8601 MB / 3.89 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.91e-07/11.36, allocations: 3.656 kB / 3.89 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007883/11.37, allocations: 1.308 MB / 3.892 GB, free: 19.07 MB / 0.5261 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]) * 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.01496/11.39, allocations: 4.735 MB / 3.896 GB, free: 33.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004463/11.39, allocations: 1.175 MB / 3.897 GB, free: 33.51 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/11.39, allocations: 256 / 3.897 GB, free: 33.51 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00339/11.39, allocations: 0.8552 MB / 3.898 GB, free: 33.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003197/11.4, allocations: 0.5305 MB / 3.899 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00993/11.41, allocations: 2.57 MB / 3.901 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/11.41, allocations: 1.248 MB / 3.902 GB, free: 31.98 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001494/11.41, allocations: 486.1 kB / 3.903 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008479/11.41, allocations: 487 kB / 3.903 GB, free: 31.94 MB / 0.5417 GB Notification: Performance of SimCode: time 1.923e-06/11.41, allocations: 0 / 3.903 GB, free: 31.94 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1338/11.55, allocations: 69.22 MB / 3.971 GB, free: 5.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003083/11.55, allocations: 243.3 kB / 3.971 GB, free: 5.414 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.442/15.99, allocations: 0 / 3.971 GB, free: 5.414 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