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.001427/0.001427, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.001129, allocations: 93.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3569/0.3569, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.092e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5269, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.308/8.835, allocations: 2.765 GB / 3.231 GB, free: 23.83 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/8.836, allocations: 87.75 kB / 3.231 GB, free: 23.79 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.142/11.98, allocations: 0.5479 GB / 3.779 GB, free: 38.48 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.004e-06/11.98, allocations: 0 / 3.779 GB, free: 38.48 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 7.279e-05/11.98, allocations: 23.47 kB / 3.779 GB, free: 38.48 MB / 0.4952 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.009031/11.99, allocations: 2.039 MB / 3.781 GB, free: 37.36 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/11.99, allocations: 10.06 kB / 3.781 GB, free: 37.36 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003354/11.99, allocations: 318.5 kB / 3.781 GB, free: 37.29 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001961/11.99, allocations: 0.684 MB / 3.782 GB, free: 36.88 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/11.99, allocations: 271.1 kB / 3.782 GB, free: 36.62 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/11.99, allocations: 47.58 kB / 3.782 GB, free: 36.62 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002395/12, allocations: 0.9848 MB / 3.783 GB, free: 36.3 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/12, allocations: 1.158 MB / 3.784 GB, free: 35.73 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/12, allocations: 3.75 kB / 3.784 GB, free: 35.73 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/12, allocations: 6.484 kB / 3.784 GB, free: 35.73 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-05/12, allocations: 39.72 kB / 3.784 GB, free: 35.73 MB / 0.4952 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.1091/12.11, allocations: 36.32 MB / 3.819 GB, free: 14.05 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/12.11, allocations: 0.5032 MB / 3.82 GB, free: 13.54 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008173/12.11, allocations: 337.8 kB / 3.82 GB, free: 13.2 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005062/12.11, allocations: 402.5 kB / 3.821 GB, free: 12.74 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/12.11, allocations: 42.81 kB / 3.821 GB, free: 12.7 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=54): time 3.486e-06/12.11, allocations: 4 kB / 3.821 GB, free: 12.69 MB / 0.5108 GB Notification: Performance of matching and sorting (n=59): time 0.00747/12.12, allocations: 1.906 MB / 3.823 GB, free: 10.73 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/12.12, allocations: 133.1 kB / 3.823 GB, free: 10.57 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009774/12.12, allocations: 0.4981 MB / 3.823 GB, free: 10.07 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0001486/12.12, allocations: 37.69 kB / 3.823 GB, free: 10.03 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005034/12.12, allocations: 0.4921 MB / 3.824 GB, free: 9.531 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.000285/12.12, allocations: 191.3 kB / 3.824 GB, free: 9.344 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.789e-05/12.12, allocations: 0 / 3.824 GB, free: 9.344 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001805/12.12, allocations: 350.8 kB / 3.824 GB, free: 8.992 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009371/12.12, allocations: 350.5 kB / 3.825 GB, free: 8.648 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/12.12, allocations: 0.5759 MB / 3.825 GB, free: 7.98 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/12.12, allocations: 395.8 kB / 3.826 GB, free: 7.598 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/12.12, allocations: 4 kB / 3.826 GB, free: 7.594 MB / 0.5108 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003164/12.13, allocations: 0.965 MB / 3.826 GB, free: 6.617 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/12.13, allocations: 8 kB / 3.826 GB, free: 6.609 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/12.13, allocations: 7.984 kB / 3.826 GB, free: 6.602 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/12.13, allocations: 85.41 kB / 3.827 GB, free: 6.516 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007388/12.13, allocations: 411.3 kB / 3.827 GB, free: 6.113 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009449/12.14, allocations: 6.202 MB / 3.833 GB, free: 15.45 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/12.15, allocations: 134.8 kB / 3.833 GB, free: 15.32 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/12.15, allocations: 43.94 kB / 3.833 GB, free: 15.28 MB / 0.5265 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.0004175/12.15, allocations: 147 kB / 3.833 GB, free: 15.12 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002162/12.15, allocations: 0.6708 MB / 3.834 GB, free: 14.45 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/12.15, allocations: 75.11 kB / 3.834 GB, free: 14.37 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/12.15, allocations: 1.581 MB / 3.836 GB, free: 12.78 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-05/12.15, allocations: 19.97 kB / 3.836 GB, free: 12.76 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/12.15, allocations: 0 / 3.836 GB, free: 12.76 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/12.15, allocations: 0 / 3.836 GB, free: 12.76 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006603/12.16, allocations: 2.715 MB / 3.838 GB, free: 9.992 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/12.16, allocations: 8.047 kB / 3.838 GB, free: 9.984 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00691/12.17, allocations: 339.7 kB / 3.839 GB, free: 9.652 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005258/12.17, allocations: 100.8 kB / 3.839 GB, free: 9.551 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/12.17, allocations: 17.78 kB / 3.839 GB, free: 9.535 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009275/12.18, allocations: 6.19 MB / 3.845 GB, free: 2.875 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.944e-06/12.18, allocations: 0 / 3.845 GB, free: 2.875 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00401/12.18, allocations: 1.736 MB / 3.846 GB, free: 1.059 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/12.18, allocations: 215.7 kB / 3.847 GB, free: 0.8281 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/12.18, allocations: 19.94 kB / 3.847 GB, free: 0.8086 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/12.18, allocations: 107.8 kB / 3.847 GB, free: 0.7031 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004277/12.18, allocations: 124.3 kB / 3.847 GB, free: 0.582 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.562e-05/12.18, allocations: 23.98 kB / 3.847 GB, free: 0.5586 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.0009358/12.18, allocations: 491.1 kB / 3.847 GB, free: 76 kB / 0.5265 GB Notification: Performance of sort global known variables: time 6.01e-07/12.18, allocations: 0 / 3.847 GB, free: 76 kB / 0.5265 GB Notification: Performance of remove unused functions: time 0.4204/12.6, allocations: 1.224 MB / 3.849 GB, free: 75.75 MB / 0.5265 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.02283/12.63, allocations: 4.62 MB / 3.853 GB, free: 74.48 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.01131/12.64, allocations: 1.084 MB / 3.854 GB, free: 74.46 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/12.64, allocations: 0.8438 kB / 3.854 GB, free: 74.46 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.0095/12.65, allocations: 0.7453 MB / 3.855 GB, free: 74.46 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005053/12.65, allocations: 338.6 kB / 3.855 GB, free: 74.46 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/12.67, allocations: 2.242 MB / 3.857 GB, free: 74 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/12.67, allocations: 1.159 MB / 3.859 GB, free: 73.3 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/12.67, allocations: 400.9 kB / 3.859 GB, free: 73.29 MB / 0.5265 GB Notification: Performance of SimCode: time 2.064e-06/12.67, allocations: 0 / 3.859 GB, free: 73.29 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.323/16.99, allocations: 63.28 MB / 3.921 GB, free: 70.5 MB / 0.5265 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