Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_laminar",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.435/2.435, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1874/2.622, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/2.931, allocations: 54.86 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.098/10.03, allocations: 2.648 GB / 2.994 GB, free: 44.54 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000413/10.03, allocations: 83.14 kB / 2.994 GB, free: 44.5 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: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 4.385/14.41, allocations: 0.7428 GB / 3.737 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/14.41, allocations: 7.188 kB / 3.737 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008932/14.42, allocations: 0.6273 MB / 3.737 GB, free: 43.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004862/14.43, allocations: 1.092 MB / 3.738 GB, free: 43.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/14.43, allocations: 47.78 kB / 3.739 GB, free: 43.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004968/14.43, allocations: 58.31 kB / 3.739 GB, free: 43.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006751/14.44, allocations: 1.743 MB / 3.74 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005006/14.44, allocations: 1.551 MB / 3.742 GB, free: 41.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/14.44, allocations: 14.06 kB / 3.742 GB, free: 41.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/14.44, allocations: 4.125 kB / 3.742 GB, free: 41.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001746/14.44, allocations: 88.5 kB / 3.742 GB, free: 41.91 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9537/15.39, allocations: 137.6 MB / 3.876 GB, free: 54.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004549/15.4, allocations: 1.034 MB / 3.877 GB, free: 54.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/15.4, allocations: 0.5503 MB / 3.878 GB, free: 54.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07052/15.47, allocations: 17.41 MB / 3.895 GB, free: 43.36 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.521e-05/15.47, allocations: 42.09 kB / 3.895 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=91): time 4.408e-06/15.47, allocations: 0 / 3.895 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=129): time 0.167/15.64, allocations: 10.66 MB / 3.905 GB, free: 42.72 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/15.64, allocations: 221.8 kB / 3.906 GB, free: 42.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/15.64, allocations: 0.7629 MB / 3.906 GB, free: 42.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000595/15.64, allocations: 25.7 kB / 3.906 GB, free: 42.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000398/15.64, allocations: 0.5167 MB / 3.907 GB, free: 42.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008314/15.64, allocations: 433 kB / 3.907 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003786/15.64, allocations: 3.938 kB / 3.907 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001473/15.64, allocations: 377.6 kB / 3.908 GB, free: 41.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004197/15.65, allocations: 1.339 MB / 3.909 GB, free: 41.49 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004642/15.65, allocations: 1.781 MB / 3.911 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01449/15.67, allocations: 1.98 MB / 3.913 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-05/15.67, allocations: 5 kB / 3.913 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.02969/15.7, allocations: 5.468 MB / 3.918 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001135/15.7, allocations: 4.78 MB / 3.923 GB, free: 35.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.533e-05/15.7, allocations: 12.41 kB / 3.923 GB, free: 35.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0302/15.73, allocations: 4.093 MB / 3.927 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002988/15.73, allocations: 330.8 kB / 3.927 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03265/15.76, allocations: 6.303 MB / 3.933 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009094/15.77, allocations: 289.6 kB / 3.933 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/15.77, allocations: 125.3 kB / 3.933 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/15.77, allocations: 1.719 kB / 3.933 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02631/15.8, allocations: 3.156 MB / 3.937 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.288e-05/15.8, allocations: 13.44 kB / 3.937 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006943/15.81, allocations: 0.5883 MB / 3.937 GB, free: 34.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005117/15.81, allocations: 471.2 kB / 3.938 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007807/15.82, allocations: 1.92 MB / 3.939 GB, free: 33.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00516/15.83, allocations: 186.7 kB / 3.94 GB, free: 33.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006799/15.83, allocations: 107.4 kB / 3.94 GB, free: 33.29 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,pump.heatTransfer.states[1].phase,source.medium.phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 152 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001218/15.83, allocations: 159.2 kB / 3.94 GB, free: 33.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00338/15.83, allocations: 0.5063 MB / 3.94 GB, free: 33.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03012/15.86, allocations: 7.316 MB / 3.947 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-05/15.86, allocations: 32.84 kB / 3.948 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/15.86, allocations: 0 / 3.948 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.824e-05/15.86, allocations: 5.156 kB / 3.948 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0354/15.9, allocations: 9.732 MB / 3.957 GB, free: 32.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.957e-05/15.9, allocations: 3.812 kB / 3.957 GB, free: 32.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/15.9, allocations: 153.3 kB / 3.957 GB, free: 32.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02993/15.93, allocations: 5.048 MB / 3.962 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008682/15.93, allocations: 47.58 kB / 3.962 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0321/15.96, allocations: 6.995 MB / 3.969 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.618e-05/15.96, allocations: 8.875 kB / 3.969 GB, free: 30.73 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02622/15.99, allocations: 6.19 MB / 3.975 GB, free: 28.22 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02647/16.01, allocations: 6.691 MB / 3.982 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002609/16.02, allocations: 0.6559 MB / 3.982 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009977/16.02, allocations: 7.906 kB / 3.982 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007399/16.03, allocations: 198.5 kB / 3.982 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005802/16.03, allocations: 95.27 kB / 3.982 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005046/16.03, allocations: 75.55 kB / 3.983 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002078/16.03, allocations: 0.8023 MB / 3.983 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01645/16.05, allocations: 2.511 MB / 3.986 GB, free: 21.44 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01681/16.06, allocations: 2.578 MB / 3.988 GB, free: 19.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03138/16.09, allocations: 5.33 MB / 3.994 GB, free: 16.81 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/16.09, allocations: 0 / 3.994 GB, free: 16.81 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01834/16.11, allocations: 2.524 MB / 3.996 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007987/16.12, allocations: 474.2 kB / 3.996 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3817/16.5, allocations: 20.64 MB / 4.017 GB, free: 86.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002579/16.5, allocations: 1.573 MB / 4.018 GB, free: 85.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.903e-06/16.5, allocations: 3.469 kB / 4.018 GB, free: 85.86 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat does not exist to compare? outputFormat=mat