Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",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.654/2.654, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1616/2.815, allocations: 57.21 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/3.139, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.955/10.09, allocations: 2.595 GB / 2.941 GB, free: 102.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003597/10.09, allocations: 85.52 kB / 2.941 GB, free: 102.2 MB / 474.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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 2.115/12.21, allocations: 397.4 MB / 3.329 GB, free: 49.82 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/12.21, allocations: 7.781 kB / 3.329 GB, free: 49.82 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00428/12.21, allocations: 316.2 kB / 3.33 GB, free: 49.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/12.22, allocations: 472 kB / 3.33 GB, free: 49.44 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/12.22, allocations: 16.38 kB / 3.33 GB, free: 49.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.224e-05/12.22, allocations: 23.97 kB / 3.33 GB, free: 49.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001252/12.22, allocations: 365.1 kB / 3.33 GB, free: 49.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/12.22, allocations: 462.5 kB / 3.331 GB, free: 49.04 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/12.22, allocations: 0 / 3.331 GB, free: 49.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-05/12.22, allocations: 3 kB / 3.331 GB, free: 49.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/12.22, allocations: 10.5 kB / 3.331 GB, free: 49.04 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4036/12.62, allocations: 68.75 MB / 3.398 GB, free: 10.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008232/12.62, allocations: 242.6 kB / 3.398 GB, free: 9.773 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003924/12.62, allocations: 132.8 kB / 3.398 GB, free: 9.641 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5031/13.13, allocations: 65.06 MB / 3.462 GB, free: 75.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/13.13, allocations: 37.31 kB / 3.462 GB, free: 75.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 3.346e-06/13.13, allocations: 0 / 3.462 GB, free: 75.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.003757/13.13, allocations: 0.5885 MB / 3.462 GB, free: 75.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/13.13, allocations: 112.2 kB / 3.463 GB, free: 75.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/13.13, allocations: 298.5 kB / 3.463 GB, free: 75.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/13.13, allocations: 25.7 kB / 3.463 GB, free: 75.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/13.13, allocations: 242.5 kB / 3.463 GB, free: 75.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.757e-05/13.13, allocations: 82.36 kB / 3.463 GB, free: 75.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/13.13, allocations: 2.406 kB / 3.463 GB, free: 75.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/13.13, allocations: 347.2 kB / 3.464 GB, free: 74.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/13.13, allocations: 120.5 kB / 3.464 GB, free: 74.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/13.13, allocations: 268.2 kB / 3.464 GB, free: 74.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002018/13.13, allocations: 279.7 kB / 3.464 GB, free: 74.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/13.13, allocations: 3.312 kB / 3.464 GB, free: 74.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.004517/13.14, allocations: 0.8148 MB / 3.465 GB, free: 74.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004574/13.14, allocations: 1.737 MB / 3.467 GB, free: 72.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/13.14, allocations: 2.656 kB / 3.467 GB, free: 72.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000315/13.14, allocations: 53.66 kB / 3.467 GB, free: 72.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/13.14, allocations: 96.97 kB / 3.467 GB, free: 72.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/13.14, allocations: 0.7061 MB / 3.468 GB, free: 72.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009344/13.14, allocations: 59.42 kB / 3.468 GB, free: 72.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/13.14, allocations: 25 kB / 3.468 GB, free: 72.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/13.14, allocations: 3.125 kB / 3.468 GB, free: 72.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002121/13.15, allocations: 426.8 kB / 3.468 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/13.15, allocations: 9.688 kB / 3.468 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/13.15, allocations: 14.02 kB / 3.468 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/13.15, allocations: 107.9 kB / 3.468 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/13.15, allocations: 11.14 kB / 3.468 GB, free: 72.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007504/13.15, allocations: 52.27 kB / 3.468 GB, free: 72.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.269e-05/13.15, allocations: 23.98 kB / 3.468 GB, free: 72.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002028/13.15, allocations: 125.5 kB / 3.468 GB, free: 72.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009963/13.15, allocations: 202 kB / 3.469 GB, free: 72.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003973/13.15, allocations: 1.679 MB / 3.47 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/13.15, allocations: 14.8 kB / 3.47 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/13.15, allocations: 0 / 3.47 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/13.15, allocations: 0 / 3.47 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004343/13.16, allocations: 2.232 MB / 3.472 GB, free: 71.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/13.16, allocations: 0 / 3.472 GB, free: 71.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/13.16, allocations: 50.95 kB / 3.472 GB, free: 71.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009351/13.16, allocations: 0.4898 MB / 3.473 GB, free: 71.52 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/13.16, allocations: 19.25 kB / 3.473 GB, free: 71.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/13.16, allocations: 1.049 MB / 3.474 GB, free: 70.99 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/13.16, allocations: 11.75 kB / 3.474 GB, free: 70.99 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00402/13.16, allocations: 1.437 MB / 3.475 GB, free: 70.73 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004048/13.17, allocations: 1.901 MB / 3.477 GB, free: 70.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000389/13.17, allocations: 189.9 kB / 3.477 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/13.17, allocations: 3.906 kB / 3.477 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006064/13.17, allocations: 28.78 kB / 3.477 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/13.17, allocations: 30.75 kB / 3.477 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.531e-05/13.17, allocations: 11.09 kB / 3.477 GB, free: 69.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.000388/13.17, allocations: 223.1 kB / 3.478 GB, free: 69.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009438/13.18, allocations: 1.444 MB / 3.479 GB, free: 69.86 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01243/13.19, allocations: 1.773 MB / 3.481 GB, free: 69.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002282/13.19, allocations: 0.8889 MB / 3.482 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/13.19, allocations: 4.266 kB / 3.482 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/13.2, allocations: 0.6192 MB / 3.482 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/13.2, allocations: 172.4 kB / 3.482 GB, free: 69.62 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2814/13.48, allocations: 55.9 MB / 3.537 GB, free: 64.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007288/13.48, allocations: 0.9762 MB / 3.538 GB, free: 63.69 MB / 490.7 MB Notification: Performance of SimCode: time 2.114e-06/13.48, allocations: 0 / 3.538 GB, free: 63.69 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat