Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 88.77 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2538/0.2538, allocations: 45.14 MB / 383.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.717e-06/8.737e-06, allocations: 0 / 452.6 MB, free: 76.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.163, allocations: 63.25 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.624/6.787, allocations: 2.771 GB / 3.275 GB, free: 144.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/6.788, allocations: 83.44 kB / 3.275 GB, free: 144 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.717/8.505, allocations: 0.5556 GB / 3.83 GB, free: 1.258 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.153e-05/8.505, allocations: 24 kB / 3.83 GB, free: 1.234 MB / 0.5417 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.3082/8.813, allocations: 2.061 MB / 3.832 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/8.813, allocations: 10.88 kB / 3.832 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/8.816, allocations: 337.5 kB / 3.833 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/8.818, allocations: 0.6773 MB / 3.833 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/8.818, allocations: 272.9 kB / 3.834 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/8.818, allocations: 51.5 kB / 3.834 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001619/8.82, allocations: 1.01 MB / 3.835 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/8.821, allocations: 1.184 MB / 3.836 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.226e-05/8.821, allocations: 11.22 kB / 3.836 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.783e-05/8.822, allocations: 7.656 kB / 3.836 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.127e-05/8.822, allocations: 41.47 kB / 3.836 GB, free: 104.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07149/8.893, allocations: 38.96 MB / 3.874 GB, free: 79.55 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007606/8.894, allocations: 410.6 kB / 3.874 GB, free: 79.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/8.894, allocations: 341.5 kB / 3.875 GB, free: 79.52 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003313/8.895, allocations: 403.3 kB / 3.875 GB, free: 79.15 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/8.895, allocations: 39.78 kB / 3.875 GB, free: 79.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=54): time 2.765e-06/8.895, allocations: 2.25 kB / 3.875 GB, free: 79.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=59): time 0.004433/8.899, allocations: 1.88 MB / 3.877 GB, free: 78.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/8.899, allocations: 144.1 kB / 3.877 GB, free: 78.54 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/8.9, allocations: 0.5127 MB / 3.878 GB, free: 78.42 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.865e-05/8.9, allocations: 33.33 kB / 3.878 GB, free: 78.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/8.9, allocations: 400.7 kB / 3.878 GB, free: 78.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/8.9, allocations: 193.6 kB / 3.878 GB, free: 78.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/8.901, allocations: 0 / 3.878 GB, free: 78.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001055/8.901, allocations: 384.5 kB / 3.879 GB, free: 77.78 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005026/8.901, allocations: 383.7 kB / 3.879 GB, free: 77.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006131/8.902, allocations: 0.6044 MB / 3.879 GB, free: 77.53 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007394/8.903, allocations: 407 kB / 3.88 GB, free: 77.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/8.903, allocations: 7.875 kB / 3.88 GB, free: 77.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002613/8.905, allocations: 1.291 MB / 3.881 GB, free: 77.43 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/8.905, allocations: 6.156 kB / 3.881 GB, free: 77.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/8.905, allocations: 8.5 kB / 3.881 GB, free: 77.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003412/8.906, allocations: 87.47 kB / 3.881 GB, free: 77.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/8.91, allocations: 414.2 kB / 3.882 GB, free: 77.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005218/8.915, allocations: 6.228 MB / 3.888 GB, free: 71.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/8.916, allocations: 147.8 kB / 3.888 GB, free: 71.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.519e-05/8.916, allocations: 40.69 kB / 3.888 GB, free: 71.86 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.0003099/8.917, allocations: 156.6 kB / 3.888 GB, free: 71.75 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007732/8.917, allocations: 259.3 kB / 3.888 GB, free: 71.71 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/8.92, allocations: 1.659 MB / 3.89 GB, free: 71.58 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/8.92, allocations: 11.55 kB / 3.89 GB, free: 71.58 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/8.92, allocations: 3.906 kB / 3.89 GB, free: 71.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/8.92, allocations: 3.797 kB / 3.89 GB, free: 71.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003975/8.924, allocations: 2.929 MB / 3.893 GB, free: 71.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/8.924, allocations: 0 / 3.893 GB, free: 71.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/8.927, allocations: 331.2 kB / 3.893 GB, free: 71.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000329/8.928, allocations: 100.2 kB / 3.893 GB, free: 71.17 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.447e-05/8.928, allocations: 16.86 kB / 3.893 GB, free: 71.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00542/8.933, allocations: 6.22 MB / 3.899 GB, free: 65.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/8.933, allocations: 4.188 kB / 3.899 GB, free: 65.61 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003323/8.937, allocations: 2.273 MB / 3.902 GB, free: 65.12 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/8.937, allocations: 191.4 kB / 3.902 GB, free: 64.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/8.937, allocations: 23.05 kB / 3.902 GB, free: 64.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008771/8.938, allocations: 105.7 kB / 3.902 GB, free: 64.98 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/8.938, allocations: 129.5 kB / 3.902 GB, free: 64.98 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-05/8.938, allocations: 29.75 kB / 3.902 GB, free: 64.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005263/8.939, allocations: 453.5 kB / 3.902 GB, free: 64.88 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006793/8.946, allocations: 1.26 MB / 3.904 GB, free: 64.87 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.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[2].medium.phase,massFlowRate[1].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 (56): * Single equations (assignments): 48 * 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.01037/8.956, allocations: 2.095 MB / 3.906 GB, free: 64.67 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006611/8.963, allocations: 1.45 MB / 3.907 GB, free: 64.66 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/8.963, allocations: 2.938 kB / 3.907 GB, free: 64.66 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005653/8.969, allocations: 1.197 MB / 3.908 GB, free: 64.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/8.971, allocations: 319 kB / 3.909 GB, free: 64.66 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/8.974, allocations: 1.793 MB / 3.91 GB, free: 64.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008149/8.975, allocations: 1.236 MB / 3.912 GB, free: 63.52 MB / 0.5417 GB Notification: Performance of SimCode: time 1.352e-06/8.975, allocations: 0 / 3.912 GB, free: 63.52 MB / 0.5417 GB Notification: Performance of Templates: time 0.0666/9.041, allocations: 44.69 MB / 3.955 GB, free: 61.18 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestTankWithTopPorts/TestTankWithTopPorts.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches