Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.207e-05, allocations: 4 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 50.42 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5542, allocations: 83.27 MB / 425.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.5545, allocations: 70.64 kB / 426 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05865/0.6132, allocations: 12.69 MB / 438.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6132, allocations: 0 / 438.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.095e-05/0.6133, allocations: 19.98 kB / 438.7 MB, free: 15.69 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.003696/0.617, allocations: 1.071 MB / 439.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.617, allocations: 8.031 kB / 439.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.6173, allocations: 104.4 kB / 439.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.6175, allocations: 90.97 kB / 440 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.6188, allocations: 0.5052 MB / 440.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.71e-05/0.6189, allocations: 50.56 kB / 440.5 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.6191, allocations: 68.33 kB / 440.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.6206, allocations: 0.5522 MB / 441.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.6207, allocations: 4 kB / 441.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-05/0.6208, allocations: 25.38 kB / 441.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.6208, allocations: 16 kB / 441.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.6223, allocations: 0.5351 MB / 441.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006362/0.6287, allocations: 2.341 MB / 444 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.6299, allocations: 467.7 kB / 444.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006286/0.6306, allocations: 260.9 kB / 444.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-05/0.6307, allocations: 8.422 kB / 444.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008321/0.6315, allocations: 348.4 kB / 445.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.136e-06/0.6316, allocations: 0 / 445.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1107/0.7423, allocations: 13.49 MB / 458.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.7424, allocations: 141.3 kB / 458.7 MB, free: 14.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008416/0.7433, allocations: 455.8 kB / 459.2 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.7436, allocations: 48.52 kB / 459.2 MB, free: 13.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.7439, allocations: 422.5 kB / 459.6 MB, free: 13.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003906/0.7443, allocations: 313.5 kB / 459.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.7444, allocations: 19.75 kB / 460 MB, free: 13.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.7446, allocations: 347.9 kB / 460.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.746, allocations: 476 kB / 460.8 MB, free: 12.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00165/0.7477, allocations: 0.6958 MB / 461.5 MB, free: 11.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.7492, allocations: 0.5431 MB / 462 MB, free: 11.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.7492, allocations: 7.938 kB / 462 MB, free: 11.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03921/0.7884, allocations: 4.79 MB / 466.8 MB, free: 6.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.7886, allocations: 71.39 kB / 466.9 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.7886, allocations: 4 kB / 466.9 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06428/0.8529, allocations: 6.939 MB / 473.8 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.8544, allocations: 183.7 kB / 474 MB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009429/0.8638, allocations: 2.822 MB / 476.8 MB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/0.8671, allocations: 227.7 kB / 477 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.8673, allocations: 55.86 kB / 477.1 MB, free: 11.91 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.0004226/0.8677, allocations: 156.9 kB / 477.2 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.868, allocations: 79.06 kB / 477.3 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03887/0.9069, allocations: 4.685 MB / 482 MB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/0.907, allocations: 8 kB / 482 MB, free: 6.953 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.907, allocations: 4 kB / 482 MB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.329e-05/0.907, allocations: 11.97 kB / 482 MB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/0.9096, allocations: 1.114 MB / 483.1 MB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.9096, allocations: 0 / 483.1 MB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.9108, allocations: 127.8 kB / 483.3 MB, free: 5.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06442/0.9753, allocations: 6.891 MB / 490.2 MB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003212/0.9756, allocations: 23.97 kB / 490.2 MB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009641/0.9853, allocations: 2.842 MB / 493 MB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9854, allocations: 4 kB / 493 MB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04113/1.027, allocations: 5.325 MB / 498.4 MB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/1.027, allocations: 140.2 kB / 498.5 MB, free: 6.305 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/1.027, allocations: 23.94 kB / 498.5 MB, free: 6.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002995/1.03, allocations: 207.8 kB / 498.7 MB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004655/1.031, allocations: 104.6 kB / 498.8 MB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.031, allocations: 31.97 kB / 498.9 MB, free: 5.945 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007152/1.032, allocations: 349.6 kB / 499.2 MB, free: 5.605 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.032, allocations: 4 kB / 499.2 MB, free: 5.602 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001321/1.033, allocations: 267.9 kB / 499.5 MB, free: 5.34 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.04156/1.075, allocations: 5.906 MB / 0.4935 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008274/1.083, allocations: 1.653 MB / 0.4951 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.083, allocations: 0 / 0.4951 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006302/1.089, allocations: 0.9655 MB / 0.4961 GB, free: 12.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/1.091, allocations: 118.5 kB / 0.4962 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005609/1.096, allocations: 1.393 MB / 0.4976 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006399/1.097, allocations: 0.9666 MB / 0.4985 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006383/1.098, allocations: 275.3 kB / 0.4988 GB, free: 9.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/1.098, allocations: 0 / 0.4988 GB, free: 9.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.847/3.944, allocations: 20.04 MB / 0.5183 GB, free: 5.891 MB / 442.7 MB