Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.4e-05/3.411e-05, allocations: 8 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.5781, allocations: 83.26 MB / 425.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.5785, allocations: 74.7 kB / 426 MB, free: 10.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05979/0.6383, allocations: 12.66 MB / 438.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6383, allocations: 0 / 438.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.64e-05/0.6384, allocations: 19.5 kB / 438.6 MB, free: 15.73 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003848/0.6423, allocations: 1.084 MB / 439.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.6423, allocations: 8.031 kB / 439.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.6426, allocations: 100.1 kB / 439.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.6428, allocations: 98.95 kB / 439.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.6442, allocations: 0.5025 MB / 440.4 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.546e-05/0.6443, allocations: 43 kB / 440.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.6445, allocations: 69.2 kB / 440.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.6461, allocations: 0.5551 MB / 441.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.6461, allocations: 4 kB / 441.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-05/0.6463, allocations: 26.5 kB / 441.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.66e-05/0.6463, allocations: 19.98 kB / 441.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.6478, allocations: 0.5382 MB / 441.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006426/0.6543, allocations: 2.34 MB / 444 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.6555, allocations: 454.7 kB / 444.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000622/0.6562, allocations: 262.6 kB / 444.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.6563, allocations: 8.422 kB / 444.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008402/0.6571, allocations: 343.1 kB / 445.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.065e-06/0.6571, allocations: 0 / 445.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1119/0.769, allocations: 13.48 MB / 458.5 MB, free: 14.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.7692, allocations: 141.3 kB / 458.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008791/0.7701, allocations: 451.7 kB / 459.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002523/0.7704, allocations: 49.25 kB / 459.2 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003567/0.7707, allocations: 417.2 kB / 459.6 MB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004361/0.7712, allocations: 322.7 kB / 459.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.7713, allocations: 18.19 kB / 459.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.7715, allocations: 348.4 kB / 460.3 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.773, allocations: 477.8 kB / 460.7 MB, free: 12.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.7748, allocations: 0.6919 MB / 461.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.7764, allocations: 0.5471 MB / 462 MB, free: 11.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.7764, allocations: 4 kB / 462 MB, free: 11.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.04059/0.817, allocations: 4.801 MB / 466.8 MB, free: 6.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.461e-05/0.8172, allocations: 59.41 kB / 466.8 MB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.8172, allocations: 7.984 kB / 466.8 MB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06416/0.8814, allocations: 6.919 MB / 473.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.8828, allocations: 187.7 kB / 473.9 MB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007534/0.8904, allocations: 2.669 MB / 476.6 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/0.8935, allocations: 223.8 kB / 476.8 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.8937, allocations: 51.97 kB / 476.9 MB, free: 12.11 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * 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 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003979/0.8942, allocations: 164.8 kB / 477 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.8944, allocations: 79.06 kB / 477.1 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03858/0.933, allocations: 4.673 MB / 481.8 MB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.9331, allocations: 12.03 kB / 481.8 MB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.9331, allocations: 8 kB / 481.8 MB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/0.9331, allocations: 3.984 kB / 481.8 MB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/0.9355, allocations: 1.122 MB / 482.9 MB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.9355, allocations: 0 / 482.9 MB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.9366, allocations: 127.9 kB / 483.1 MB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0634/1, allocations: 6.888 MB / 489.9 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002773/1, allocations: 27.97 kB / 490 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007456/1.008, allocations: 2.682 MB / 492.7 MB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.008, allocations: 4 kB / 492.7 MB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04074/1.049, allocations: 5.325 MB / 498 MB, free: 6.824 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003132/1.049, allocations: 140.2 kB / 498.1 MB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/1.049, allocations: 16 kB / 498.1 MB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002798/1.052, allocations: 211.8 kB / 498.3 MB, free: 6.445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004136/1.052, allocations: 108.6 kB / 498.4 MB, free: 6.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/1.053, allocations: 31.97 kB / 498.5 MB, free: 6.309 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006636/1.053, allocations: 349.6 kB / 498.8 MB, free: 5.969 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.053, allocations: 0 / 498.8 MB, free: 5.969 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001238/1.055, allocations: 268 kB / 499.1 MB, free: 5.707 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.04148/1.096, allocations: 5.897 MB / 0.4931 GB, free: 15.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006342/1.102, allocations: 1.506 MB / 0.4946 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/1.103, allocations: 0 / 0.4946 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004177/1.107, allocations: 0.8198 MB / 0.4954 GB, free: 13.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/1.108, allocations: 117.9 kB / 0.4955 GB, free: 13.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/1.113, allocations: 1.42 MB / 0.4969 GB, free: 11.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/1.113, allocations: 0.9666 MB / 0.4979 GB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006205/1.114, allocations: 267.3 kB / 0.4981 GB, free: 10.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/1.114, allocations: 0 / 0.4981 GB, free: 10.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.05/4.164, allocations: 20.16 MB / 0.5178 GB, free: 6.422 MB / 442.7 MB