Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.465/2.465, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1417/2.607, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/2.919, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.567/10.49, allocations: 2.657 GB / 3.003 GB, free: 110.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/10.49, allocations: 77.72 kB / 3.003 GB, free: 110.6 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 5.129/15.62, allocations: 0.8606 GB / 3.864 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/15.62, allocations: 12 kB / 3.864 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01206/15.63, allocations: 0.8788 MB / 3.865 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01418/15.64, allocations: 2.107 MB / 3.867 GB, free: 8.812 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006064/15.64, allocations: 95.97 kB / 3.867 GB, free: 8.719 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/15.64, allocations: 112 kB / 3.867 GB, free: 8.609 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01443/15.66, allocations: 2.608 MB / 3.87 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/15.67, allocations: 2.855 MB / 3.872 GB, free: 2.934 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/15.68, allocations: 11.84 kB / 3.872 GB, free: 2.922 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001126/15.68, allocations: 8 kB / 3.872 GB, free: 2.914 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004956/15.68, allocations: 171.5 kB / 3.872 GB, free: 2.746 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6816/16.36, allocations: 79.96 MB / 3.951 GB, free: 40.58 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004355/16.36, allocations: 1.125 MB / 3.952 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003557/16.37, allocations: 1.007 MB / 3.953 GB, free: 40.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.105/16.47, allocations: 17.44 MB / 3.97 GB, free: 29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004707/16.48, allocations: 1.198 MB / 3.971 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 1.561e-05/16.48, allocations: 0 / 3.971 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.06408/16.54, allocations: 8.315 MB / 3.979 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004669/16.54, allocations: 386.5 kB / 3.979 GB, free: 42.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004458/16.55, allocations: 1.149 MB / 3.98 GB, free: 42.63 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007435/16.55, allocations: 29.33 kB / 3.98 GB, free: 42.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001548/16.55, allocations: 0.7764 MB / 3.981 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001637/16.55, allocations: 0.5425 MB / 3.982 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000419/16.55, allocations: 0 / 3.982 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003949/16.55, allocations: 389 kB / 3.982 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005028/16.56, allocations: 1.148 MB / 3.983 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00592/16.56, allocations: 1.634 MB / 3.985 GB, free: 41.11 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03819/16.6, allocations: 3.507 MB / 3.988 GB, free: 41.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.284e-05/16.6, allocations: 11.84 kB / 3.988 GB, free: 41.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.05234/16.65, allocations: 6.531 MB / 3.995 GB, free: 40.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003294/16.66, allocations: 5.225 MB / 4 GB, free: 35.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/16.66, allocations: 17.73 kB / 4 GB, free: 35.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02233/16.68, allocations: 2.146 MB / 4.002 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/16.68, allocations: 315.6 kB / 4.002 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02397/16.71, allocations: 4.291 MB / 4.006 GB, free: 34.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006856/16.71, allocations: 252.1 kB / 4.007 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009638/16.71, allocations: 107 kB / 4.007 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/16.71, allocations: 4.594 kB / 4.007 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05081/16.76, allocations: 5.314 MB / 4.012 GB, free: 34.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.52e-05/16.76, allocations: 18.42 kB / 4.012 GB, free: 34.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01671/16.78, allocations: 1.61 MB / 4.014 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/16.78, allocations: 369 kB / 4.014 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009021/16.79, allocations: 2.995 MB / 4.017 GB, free: 33.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/16.8, allocations: 234.4 kB / 4.017 GB, free: 33.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007534/16.8, allocations: 104.4 kB / 4.017 GB, free: 33.95 MB / 0.5417 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 (162): * Single equations (assignments): 158 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001077/16.8, allocations: 195.9 kB / 4.017 GB, free: 33.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003534/16.8, allocations: 0.6503 MB / 4.018 GB, free: 33.71 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01973/16.82, allocations: 6.67 MB / 4.024 GB, free: 33.17 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-05/16.82, allocations: 55.64 kB / 4.025 GB, free: 33.17 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/16.82, allocations: 7.094 kB / 4.025 GB, free: 33.17 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01272/16.84, allocations: 5.458 MB / 4.03 GB, free: 32.52 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/16.86, allocations: 9.185 MB / 4.039 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-05/16.86, allocations: 0 / 4.039 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004073/16.87, allocations: 330.1 kB / 4.039 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/16.87, allocations: 339.8 kB / 4.039 GB, free: 31.65 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004896/16.87, allocations: 47.7 kB / 4.039 GB, free: 31.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003229/16.87, allocations: 2.717 MB / 4.042 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.477e-06/16.87, allocations: 1.312 kB / 4.042 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0271/16.9, allocations: 7.113 MB / 4.049 GB, free: 28.98 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02821/16.93, allocations: 9.652 MB / 4.059 GB, free: 28.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003556/16.93, allocations: 0.6768 MB / 4.059 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/16.93, allocations: 19.64 kB / 4.059 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0041/16.94, allocations: 161.9 kB / 4.059 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005211/16.94, allocations: 133.5 kB / 4.059 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/16.94, allocations: 62.42 kB / 4.06 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.003133/16.94, allocations: 1.049 MB / 4.061 GB, free: 27.64 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02021/16.96, allocations: 3.174 MB / 4.064 GB, free: 27.62 MB / 0.5417 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.01938/16.98, allocations: 3.063 MB / 4.067 GB, free: 27.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02079/17, allocations: 5.567 MB / 4.072 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/17, allocations: 0 / 4.072 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006584/17.01, allocations: 2.864 MB / 4.075 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01027/17.02, allocations: 0.73 MB / 4.076 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1043/17.12, allocations: 20.31 MB / 4.095 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005416/17.13, allocations: 2.333 MB / 4.098 GB, free: 9.281 MB / 0.5417 GB Notification: Performance of SimCode: time 2.134e-06/17.13, allocations: 0 / 4.098 GB, free: 9.281 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat