Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr SiemensPower_SiemensPower.Components.Pipes.Tests.TubeWithoutWall.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package SiemensPower with version 2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/SiemensPower 2.2/package.mo) Running command: "" <> buildModelFMU(SiemensPower.Components.Pipes.Tests.TubeWithoutWall,fileNamePrefix="SiemensPower_SiemensPower_Components_Pipes_Tests_TubeWithoutWall",fmuType="me",version="2.0",platforms={"static"}) [: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 loadModel(SiemensPower): time 1.659/1.659, allocations: 176.9 MB / 184.3 MB, free: 11.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1475/1.807, allocations: 45.67 MB / 229.9 MB, free: 13.76 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/2.018, allocations: 40.04 MB / 270 MB, free: 6.453 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.088/9.105, allocations: 2.901 GB / 3.164 GB, free: 21.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/9.106, allocations: 53.61 kB / 3.164 GB, free: 21.82 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 725 * Number of variables: 725 Notification: Performance of Generate backend data structure: time 4.557/13.66, allocations: 0.9506 GB / 4.115 GB, free: 51.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/13.66, allocations: 10.16 kB / 4.115 GB, free: 51.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02165/13.68, allocations: 1.741 MB / 4.117 GB, free: 51.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01605/13.7, allocations: 3.182 MB / 4.12 GB, free: 50.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008168/13.7, allocations: 359.3 kB / 4.12 GB, free: 50.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00168/13.7, allocations: 167.6 kB / 4.12 GB, free: 50.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01658/13.72, allocations: 5.367 MB / 4.126 GB, free: 50.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01567/13.74, allocations: 4.74 MB / 4.13 GB, free: 48.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.201e-05/13.74, allocations: 11.81 kB / 4.13 GB, free: 48.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007667/13.74, allocations: 10.88 kB / 4.13 GB, free: 48.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/13.74, allocations: 119.4 kB / 4.13 GB, free: 48.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05599/13.79, allocations: 24.96 MB / 4.155 GB, free: 30.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008991/13.8, allocations: 3.766 MB / 4.158 GB, free: 26.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007623/13.81, allocations: 2.573 MB / 4.161 GB, free: 24.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006005/13.81, allocations: 1.446 MB / 4.162 GB, free: 23.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01161/13.83, allocations: 2.801 MB / 4.165 GB, free: 20.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=358): time 8.917e-06/13.83, allocations: 0 / 4.165 GB, free: 20.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=382): time 0.06356/13.89, allocations: 14.38 MB / 4.179 GB, free: 8.652 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/13.89, allocations: 177.1 kB / 4.179 GB, free: 8.449 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004516/13.89, allocations: 1.737 MB / 4.181 GB, free: 6.898 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0012/13.9, allocations: 29.2 kB / 4.181 GB, free: 6.867 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008706/13.9, allocations: 0.868 MB / 4.182 GB, free: 5.984 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002882/13.9, allocations: 1.271 MB / 4.183 GB, free: 4.695 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005105/13.9, allocations: 0 / 4.183 GB, free: 4.695 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003908/13.9, allocations: 470.8 kB / 4.183 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006974/13.91, allocations: 2.526 MB / 4.186 GB, free: 1.691 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1989/14.11, allocations: 3.348 MB / 4.189 GB, free: 76.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/14.12, allocations: 2.938 MB / 4.192 GB, free: 76.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-05/14.12, allocations: 3.875 kB / 4.192 GB, free: 76.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.03094/14.15, allocations: 8.856 MB / 4.201 GB, free: 75.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/14.15, allocations: 7.844 kB / 4.201 GB, free: 75.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.562e-05/14.15, allocations: 20.91 kB / 4.201 GB, free: 75.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02443/14.17, allocations: 3.147 MB / 4.204 GB, free: 75.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005157/14.18, allocations: 0.6642 MB / 4.204 GB, free: 75.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02254/14.2, allocations: 6.986 MB / 4.211 GB, free: 75.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009246/14.21, allocations: 411.9 kB / 4.212 GB, free: 75.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/14.21, allocations: 227.6 kB / 4.212 GB, free: 75.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 47 (tube1.friction.DPMFLOW_IN_con.roughness,tube2.friction.DPMFLOW_IN_con.roughness,$whenCondition1,$whenCondition2,$whenCondition3,tube2.fluid[1].phase,tube2.fluid[2].phase,tube2.fluid[3].phase,tube2.fluid[4].phase,tube2.fluid[5].phase,tube2.fluid[6].phase,tube2.fluid[7].phase,tube2.fluid[8].phase,tube2.fluid[9].phase,tube2.fluid[10].phase,watersource_mh.medium.phase,watersink_ph.water.phase,InletMassFlowRate.originalTable.a,InletMassFlowRate.originalTable.b,InletMassFlowRate.originalTable.last,$PRE.InletMassFlowRate.originalTable.nextEvent,InletMassFlowRate.originalTable.nextEvent,OutletPressure.originalTable.a,OutletPressure.originalTable.b,OutletPressure.originalTable.last,$PRE.OutletPressure.originalTable.nextEvent,OutletPressure.originalTable.nextEvent,InletEnthalpy.originalTable.a,InletEnthalpy.originalTable.b,InletEnthalpy.originalTable.last,$PRE.InletEnthalpy.originalTable.nextEvent,InletEnthalpy.originalTable.nextEvent,tube1.fluid[1].phase,tube1.fluid[2].phase,tube1.fluid[3].phase,tube1.fluid[4].phase,tube1.fluid[5].phase,tube1.fluid[6].phase,tube1.fluid[7].phase,tube1.fluid[8].phase,tube1.fluid[9].phase,tube1.fluid[10].phase,watersource_add.medium.phase,tube1.state_from_b.phase,tube1.state_from_a.phase,tube2.state_from_b.phase,tube2.state_from_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (367): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {22 121} Notification: Performance of prepare postOptimizeDAE: time 0.001506/14.21, allocations: 316.8 kB / 4.212 GB, free: 75.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006663/14.22, allocations: 1.372 MB / 4.214 GB, free: 75.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03971/14.26, allocations: 16.02 MB / 4.229 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000166/14.26, allocations: 121.1 kB / 4.229 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-05/14.26, allocations: 4.469 kB / 4.229 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001244/14.26, allocations: 19.64 kB / 4.229 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.051/14.31, allocations: 24.89 MB / 4.254 GB, free: 70.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/14.31, allocations: 9.062 kB / 4.254 GB, free: 70.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0115/14.32, allocations: 0.9981 MB / 4.255 GB, free: 70.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004429/14.33, allocations: 0.8315 MB / 4.255 GB, free: 69.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001797/14.33, allocations: 153.9 kB / 4.256 GB, free: 69.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00675/14.34, allocations: 3.548 MB / 4.259 GB, free: 67.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-05/14.34, allocations: 9.719 kB / 4.259 GB, free: 67.82 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0408/14.38, allocations: 17.16 MB / 4.276 GB, free: 60.57 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05227/14.43, allocations: 22.73 MB / 4.298 GB, free: 49.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00479/14.43, allocations: 1.266 MB / 4.299 GB, free: 48.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001708/14.44, allocations: 69.69 kB / 4.299 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008907/14.44, allocations: 436 kB / 4.3 GB, free: 48.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002156/14.45, allocations: 0.509 MB / 4.3 GB, free: 47.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007401/14.45, allocations: 189.6 kB / 4.3 GB, free: 47.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002957/14.45, allocations: 1.272 MB / 4.302 GB, free: 46.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01468/14.47, allocations: 2.56 MB / 4.304 GB, free: 44.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 27 (tube2.fluid[1].h,tube2.fluid[2].h,tube2.fluid[3].h,tube2.fluid[4].h,tube2.fluid[5].h,tube2.fluid[6].h,tube2.fluid[7].h,tube2.fluid[8].h,tube2.fluid[9].p,tube2.fluid[9].h,tube2.fluid[10].h,tube2.m_flows[1],InletMassFlowRate.C1signal.y,OutletPressure.C1signal.y,InletEnthalpy.C1signal.y,tube1.fluid[1].h,tube1.fluid[2].h,tube1.fluid[3].h,tube1.fluid[4].h,tube1.fluid[5].h,tube1.fluid[6].h,tube1.fluid[7].h,tube1.fluid[8].h,tube1.fluid[9].p,tube1.fluid[9].h,tube1.fluid[10].h,tube1.m_flows[1]) * Number of discrete variables: 92 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse66.phase,$cse66.region,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,$cse69.phase,$cse69.region,$cse70.phase,$cse70.region,$whenCondition1,$whenCondition2,$whenCondition3,tube2.fluid[1].phase,tube2.fluid[2].phase,tube2.fluid[3].phase,tube2.fluid[4].phase,tube2.fluid[5].phase,tube2.fluid[6].phase,tube2.fluid[7].phase,tube2.fluid[8].phase,tube2.fluid[9].phase,tube2.fluid[10].phase,watersource_mh.medium.phase,watersink_ph.water.phase,InletMassFlowRate.originalTable.a,InletMassFlowRate.originalTable.b,InletMassFlowRate.originalTable.last,InletMassFlowRate.originalTable.nextEvent,OutletPressure.originalTable.a,OutletPressure.originalTable.b,OutletPressure.originalTable.last,OutletPressure.originalTable.nextEvent,InletEnthalpy.originalTable.a,InletEnthalpy.originalTable.b,InletEnthalpy.originalTable.last,InletEnthalpy.originalTable.nextEvent,tube1.fluid[1].phase,tube1.fluid[2].phase,tube1.fluid[3].phase,tube1.fluid[4].phase,tube1.fluid[5].phase,tube1.fluid[6].phase,tube1.fluid[7].phase,tube1.fluid[8].phase,tube1.fluid[9].phase,tube1.fluid[10].phase,watersource_add.medium.phase) * Number of discrete states: 15 (InletMassFlowRate.originalTable.last,InletMassFlowRate.originalTable.nextEvent,InletMassFlowRate.originalTable.b,InletMassFlowRate.originalTable.a,$whenCondition3,OutletPressure.originalTable.last,OutletPressure.originalTable.nextEvent,OutletPressure.originalTable.b,OutletPressure.originalTable.a,$whenCondition2,InletEnthalpy.originalTable.last,InletEnthalpy.originalTable.nextEvent,InletEnthalpy.originalTable.b,InletEnthalpy.originalTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (421): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 27 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01328/14.48, allocations: 2.348 MB / 4.306 GB, free: 42.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02323/14.5, allocations: 9.821 MB / 4.316 GB, free: 34.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/14.5, allocations: 0 / 4.316 GB, free: 34.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01915/14.52, allocations: 9.927 MB / 4.326 GB, free: 25.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0149/14.54, allocations: 1.353 MB / 4.327 GB, free: 24.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03287/14.57, allocations: 12.35 MB / 4.339 GB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006742/14.58, allocations: 3.231 MB / 4.342 GB, free: 11.94 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/14.58, allocations: 0 / 4.342 GB, free: 11.94 MB / 394.7 MB