Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.125e-05, allocations: 5.562 kB / 292.2 MB, free: 8.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 50.41 MB / 342.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.5374, allocations: 79.93 MB / 422.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.5376, allocations: 74.52 kB / 422.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02001/0.5577, allocations: 5.062 MB / 427.7 MB, free: 9.469 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5577, allocations: 4 kB / 427.7 MB, free: 9.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.5577, allocations: 4 kB / 427.7 MB, free: 9.461 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001145/0.5589, allocations: 0.5403 MB / 428.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.559, allocations: 8.031 kB / 428.2 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.879e-05/0.5591, allocations: 58.42 kB / 428.3 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.5592, allocations: 39.53 kB / 428.3 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.5596, allocations: 285.1 kB / 428.6 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.5597, allocations: 15.31 kB / 428.6 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.659e-05/0.5597, allocations: 25.19 kB / 428.7 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006476/0.5604, allocations: 268.3 kB / 428.9 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.5604, allocations: 3.953 kB / 428.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.5605, allocations: 11.62 kB / 428.9 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.5605, allocations: 4 kB / 428.9 MB, free: 8.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.561, allocations: 190 kB / 429.1 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.5634, allocations: 1.151 MB / 430.3 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006638/0.5641, allocations: 199.8 kB / 430.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004058/0.5645, allocations: 148.4 kB / 430.6 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.5646, allocations: 4.188 kB / 430.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003463/0.5649, allocations: 161 kB / 430.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.464e-06/0.5649, allocations: 0 / 430.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008034/0.5658, allocations: 263.6 kB / 431 MB, free: 6.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.5659, allocations: 136.5 kB / 431.2 MB, free: 6.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.5662, allocations: 213.4 kB / 431.4 MB, free: 6.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.5662, allocations: 33.64 kB / 431.4 MB, free: 6.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.5664, allocations: 219.3 kB / 431.6 MB, free: 6.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.5665, allocations: 75.98 kB / 431.7 MB, free: 5.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/0.5665, allocations: 7.062 kB / 431.7 MB, free: 5.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5667, allocations: 322.2 kB / 432 MB, free: 5.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.5669, allocations: 67.25 kB / 432.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.5671, allocations: 112 kB / 432.2 MB, free: 5.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.5673, allocations: 63.55 kB / 432.3 MB, free: 5.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5674, allocations: 8.031 kB / 432.3 MB, free: 5.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006352/0.568, allocations: 255.6 kB / 432.5 MB, free: 5.254 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.568, allocations: 8 kB / 432.5 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.5681, allocations: 0 / 432.5 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004986/0.5686, allocations: 101.5 kB / 432.6 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.5688, allocations: 31.95 kB / 432.7 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003103/0.5719, allocations: 1.985 MB / 434.6 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.5723, allocations: 35.3 kB / 434.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.5724, allocations: 11.44 kB / 434.7 MB, free: 3.289 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.5725, allocations: 120.4 kB / 434.8 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.2e-05/0.5726, allocations: 27.67 kB / 434.8 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.412e-05/0.5727, allocations: 30.83 kB / 434.9 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.5727, allocations: 4 kB / 434.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.5727, allocations: 0 / 434.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5727, allocations: 0 / 434.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.5741, allocations: 0.8009 MB / 435.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.5742, allocations: 0 / 435.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.5744, allocations: 20.09 kB / 435.7 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003967/0.5748, allocations: 85 kB / 435.8 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.5748, allocations: 7.875 kB / 435.8 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002903/0.5777, allocations: 1.937 MB / 437.7 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5778, allocations: 3.938 kB / 437.7 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008708/0.5786, allocations: 446.5 kB / 438.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.5788, allocations: 127.1 kB / 438.3 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.5789, allocations: 3.125 kB / 438.3 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.5792, allocations: 23.34 kB / 438.3 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.5794, allocations: 42.95 kB / 438.3 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.5794, allocations: 4 kB / 438.3 MB, free: 20 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002596/0.5797, allocations: 179.2 kB / 438.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5797, allocations: 0 / 438.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006418/0.5804, allocations: 87.41 kB / 438.6 MB, free: 15.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001254/0.5817, allocations: 1.056 MB / 439.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008374/0.5825, allocations: 330.8 kB / 440 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5825, allocations: 0 / 440 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005259/0.5831, allocations: 248.2 kB / 440.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.5836, allocations: 62.56 kB / 440.3 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.5852, allocations: 496.5 kB / 440.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.5856, allocations: 0.7716 MB / 441.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.5858, allocations: 80.41 kB / 441.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5858, allocations: 3.938 kB / 441.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.675/3.26, allocations: 5.7 MB / 447.3 MB, free: 7.395 MB / 362.7 MB