Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.436e-05, allocations: 4 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5594/0.6708, allocations: 76.72 MB / 419.3 MB, free: 1.086 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.6711, allocations: 70.62 kB / 419.4 MB, free: 1.047 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007306/0.6784, allocations: 1.777 MB / 421.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.6785, allocations: 0 / 421.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.6785, allocations: 4 kB / 421.2 MB, free: 15.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004854/0.679, allocations: 365.7 kB / 421.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.679, allocations: 12.03 kB / 421.6 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.318e-05/0.6791, allocations: 41.61 kB / 421.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.6793, allocations: 10.86 kB / 421.6 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.6794, allocations: 174.9 kB / 421.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.6795, allocations: 7.438 kB / 421.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.6795, allocations: 7 kB / 421.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.6797, allocations: 88.8 kB / 421.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.6798, allocations: 4 kB / 421.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.6798, allocations: 0 / 421.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.6798, allocations: 4 kB / 421.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.68, allocations: 51.23 kB / 421.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009079/0.6809, allocations: 405.4 kB / 422.3 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.6811, allocations: 66.06 kB / 422.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.601e-05/0.6812, allocations: 35.81 kB / 422.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.6812, allocations: 4 kB / 422.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.6813, allocations: 34.55 kB / 422.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 2.534e-06/0.6813, allocations: 0 / 422.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002379/0.6815, allocations: 85.03 kB / 422.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.6816, allocations: 51.41 kB / 422.6 MB, free: 14.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.6817, allocations: 96.81 kB / 422.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.6817, allocations: 25.7 kB / 422.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.6819, allocations: 174 kB / 422.9 MB, free: 13.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.6819, allocations: 27.25 kB / 422.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.6819, allocations: 3.875 kB / 422.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6821, allocations: 318.8 kB / 423.2 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.197e-05/0.6822, allocations: 19.5 kB / 423.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-05/0.6823, allocations: 50.27 kB / 423.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.837e-05/0.6824, allocations: 31.67 kB / 423.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.6824, allocations: 0 / 423.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002257/0.6826, allocations: 93.19 kB / 423.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.6827, allocations: 7.953 kB / 423.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.6827, allocations: 0 / 423.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.6827, allocations: 8.062 kB / 423.4 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.6829, allocations: 27.86 kB / 423.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.683, allocations: 0 / 423.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.6831, allocations: 11.84 kB / 423.5 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.6831, allocations: 4 kB / 423.5 MB, free: 13.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.6832, allocations: 113.6 kB / 423.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.6833, allocations: 4 kB / 423.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.6833, allocations: 12.33 kB / 423.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.6833, allocations: 4 kB / 423.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6834, allocations: 7.938 kB / 423.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.6834, allocations: 0 / 423.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.6837, allocations: 189 kB / 423.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6837, allocations: 0 / 423.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.6839, allocations: 16 kB / 423.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.6839, allocations: 3.984 kB / 423.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.6839, allocations: 0 / 423.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.6839, allocations: 3.953 kB / 423.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.6839, allocations: 4.25 kB / 423.8 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.6843, allocations: 194.6 kB / 424 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.6843, allocations: 77.11 kB / 424.1 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.6844, allocations: 11.59 kB / 424.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.6845, allocations: 0 / 424.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.6845, allocations: 11.94 kB / 424.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.6845, allocations: 0 / 424.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.224e-05/0.6846, allocations: 82.78 kB / 424.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6846, allocations: 4.062 kB / 424.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003453/0.685, allocations: 31.72 kB / 424.2 MB, free: 12.4 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006015/0.6856, allocations: 0.7196 MB / 425 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001818/0.6858, allocations: 50.92 kB / 425 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6858, allocations: 192 / 425 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.574e-05/0.6859, allocations: 27.81 kB / 425 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.6861, allocations: 19.56 kB / 425.1 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009166/0.6871, allocations: 311.4 kB / 425.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.6874, allocations: 0.6926 MB / 426.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.6875, allocations: 23.23 kB / 426.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of SimCode: time 8.22e-07/0.6875, allocations: 0 / 426.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.449/3.137, allocations: 1.349 MB / 427.4 MB, free: 9.195 MB / 346.7 MB