Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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(ModelicaTest): time 2.548/2.548, allocations: 235.1 MB / 242 MB, free: 9.645 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1951/2.743, allocations: 57.19 MB / 299.2 MB, free: 344 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/3.049, allocations: 54.86 MB / 354.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.341/10.39, allocations: 2.657 GB / 3.003 GB, free: 110.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/10.39, allocations: 78.02 kB / 3.003 GB, free: 110.3 MB / 490.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 4.469/14.86, allocations: 0.7974 GB / 3.801 GB, free: 30.93 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/14.86, allocations: 7.094 kB / 3.801 GB, free: 30.93 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01182/14.87, allocations: 0.8786 MB / 3.801 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/14.88, allocations: 2.109 MB / 3.803 GB, free: 30.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003164/14.88, allocations: 98.55 kB / 3.804 GB, free: 30.28 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/14.88, allocations: 115 kB / 3.804 GB, free: 30.28 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009879/14.89, allocations: 2.618 MB / 3.806 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/14.91, allocations: 2.855 MB / 3.809 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/14.91, allocations: 11.12 kB / 3.809 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004856/14.91, allocations: 7.812 kB / 3.809 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000268/14.91, allocations: 173.8 kB / 3.809 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6559/15.57, allocations: 80.03 MB / 3.887 GB, free: 67.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00337/15.57, allocations: 1.122 MB / 3.888 GB, free: 67 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002706/15.57, allocations: 1.014 MB / 3.889 GB, free: 66.99 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06705/15.64, allocations: 17.45 MB / 3.906 GB, free: 56.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003516/15.64, allocations: 1.187 MB / 3.908 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 4.919e-06/15.64, allocations: 0 / 3.908 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.04115/15.68, allocations: 8.328 MB / 3.916 GB, free: 54.54 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/15.68, allocations: 381.7 kB / 3.916 GB, free: 54.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003187/15.69, allocations: 1.144 MB / 3.917 GB, free: 53.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006372/15.69, allocations: 30.95 kB / 3.917 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009692/15.69, allocations: 0.7776 MB / 3.918 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001168/15.69, allocations: 0.5387 MB / 3.919 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/15.69, allocations: 6.625 kB / 3.919 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001956/15.69, allocations: 388 kB / 3.919 GB, free: 52.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003473/15.69, allocations: 1.145 MB / 3.92 GB, free: 52.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/15.7, allocations: 1.631 MB / 3.922 GB, free: 52.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03009/15.73, allocations: 3.516 MB / 3.925 GB, free: 52.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-05/15.73, allocations: 7.469 kB / 3.925 GB, free: 52.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.04146/15.77, allocations: 5.916 MB / 3.931 GB, free: 52.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001232/15.77, allocations: 5.22 MB / 3.936 GB, free: 46.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.61e-05/15.77, allocations: 20.31 kB / 3.936 GB, free: 46.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/15.77, allocations: 252.2 kB / 3.936 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005468/15.78, allocations: 0.525 MB / 3.937 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/15.78, allocations: 2.563 MB / 3.939 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005177/15.79, allocations: 252.9 kB / 3.939 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007972/15.79, allocations: 105.4 kB / 3.94 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/15.79, allocations: 3.938 kB / 3.94 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03558/15.82, allocations: 4.892 MB / 3.944 GB, free: 44.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-05/15.82, allocations: 15.34 kB / 3.944 GB, free: 44.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/15.82, allocations: 255.2 kB / 3.945 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005439/15.83, allocations: 0.5148 MB / 3.945 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002633/15.83, allocations: 2.562 MB / 3.948 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004832/15.84, allocations: 228 kB / 3.948 GB, free: 42.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007077/15.84, allocations: 101.5 kB / 3.948 GB, free: 42.54 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (251): * Single equations (assignments): 244 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000942/15.84, allocations: 210.2 kB / 3.948 GB, free: 42.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004105/15.84, allocations: 0.6538 MB / 3.949 GB, free: 42.31 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02059/15.86, allocations: 6.658 MB / 3.955 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/15.86, allocations: 57.3 kB / 3.955 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/15.86, allocations: 0 / 3.955 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0139/15.88, allocations: 5.475 MB / 3.961 GB, free: 41.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02504/15.9, allocations: 9.179 MB / 3.97 GB, free: 40.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/15.9, allocations: 0 / 3.97 GB, free: 40.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003802/15.91, allocations: 335.1 kB / 3.97 GB, free: 40.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/15.91, allocations: 331.8 kB / 3.97 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006558/15.91, allocations: 54.67 kB / 3.97 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/15.91, allocations: 2.724 MB / 3.973 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/15.91, allocations: 7.016 kB / 3.973 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01982/15.93, allocations: 7.114 MB / 3.98 GB, free: 37.64 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0251/15.96, allocations: 9.644 MB / 3.989 GB, free: 36.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002714/15.96, allocations: 0.6752 MB / 3.99 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009284/15.96, allocations: 21.17 kB / 3.99 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003478/15.96, allocations: 157.3 kB / 3.99 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005043/15.97, allocations: 133.5 kB / 3.99 GB, free: 36.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/15.97, allocations: 63.27 kB / 3.99 GB, free: 36.44 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002741/15.97, allocations: 1.054 MB / 3.991 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02015/15.99, allocations: 3.174 MB / 3.994 GB, free: 36.21 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0188/16.01, allocations: 3.058 MB / 3.997 GB, free: 35.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0152/16.02, allocations: 5.493 MB / 4.003 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/16.02, allocations: 3.609 kB / 4.003 GB, free: 35.68 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006787/16.03, allocations: 2.866 MB / 4.006 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008721/16.04, allocations: 0.7257 MB / 4.006 GB, free: 35.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09323/16.13, allocations: 20.35 MB / 4.026 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005629/16.14, allocations: 2.353 MB / 4.029 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.582e-06/16.14, allocations: 4 kB / 4.029 GB, free: 32.7 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat