Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.474e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2957, allocations: 44.49 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.4288, allocations: 73.33 MB / 367.5 MB, free: 8.574 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4291, allocations: 67.97 kB / 367.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01981/0.4489, allocations: 4.82 MB / 372.4 MB, free: 3.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.449, allocations: 0 / 372.4 MB, free: 3.664 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.449, allocations: 8 kB / 372.4 MB, free: 3.656 MB / 314.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.001203/0.4502, allocations: 0.5431 MB / 373 MB, free: 3.066 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.4503, allocations: 8.25 kB / 373 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.4504, allocations: 35.53 kB / 373 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.4509, allocations: 275.2 kB / 373.3 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.4509, allocations: 8 kB / 373.3 MB, free: 2.707 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.451, allocations: 16 kB / 373.3 MB, free: 2.691 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005438/0.4515, allocations: 177 kB / 373.5 MB, free: 2.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.4522, allocations: 239.5 kB / 373.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.4522, allocations: 0 / 373.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.4522, allocations: 4 kB / 373.7 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.4523, allocations: 7.938 kB / 373.7 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002448/0.4547, allocations: 1.099 MB / 374.8 MB, free: 1.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.4554, allocations: 203 kB / 375 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003901/0.4558, allocations: 129.2 kB / 375.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.4559, allocations: 192 / 375.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003507/0.4562, allocations: 156.5 kB / 375.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.034e-06/0.4562, allocations: 0 / 375.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007865/0.457, allocations: 243.6 kB / 375.5 MB, free: 340 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.4571, allocations: 128.5 kB / 375.7 MB, free: 180 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.4575, allocations: 207.9 kB / 375.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.4576, allocations: 25.7 kB / 375.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.4577, allocations: 230.6 kB / 376.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.727e-05/0.4578, allocations: 59.11 kB / 376.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.4579, allocations: 0 / 376.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.458, allocations: 322.8 kB / 376.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.4582, allocations: 60 kB / 376.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.4585, allocations: 113.1 kB / 376.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.4587, allocations: 67.91 kB / 376.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4587, allocations: 0 / 376.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006304/0.4593, allocations: 238.2 kB / 376.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.4594, allocations: 11.95 kB / 377 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4594, allocations: 4.125 kB / 377 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.4599, allocations: 96.8 kB / 377.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.4602, allocations: 23.98 kB / 377.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003186/0.4634, allocations: 1.916 MB / 379 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/0.4638, allocations: 27.86 kB / 379 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.4638, allocations: 12 kB / 379 MB, free: 12.62 MB / 330.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.pulsStart,booleanPulse.pulsStart,$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.000154/0.464, allocations: 128.6 kB / 379.2 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006906/0.4647, allocations: 246 kB / 379.4 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.258e-05/0.4648, allocations: 23.72 kB / 379.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.29e-05/0.4649, allocations: 29.95 kB / 379.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.4649, allocations: 0 / 379.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4649, allocations: 4 kB / 379.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.4649, allocations: 3.984 kB / 379.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.4663, allocations: 0.7265 MB / 380.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.4663, allocations: 0 / 380.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.4666, allocations: 19.98 kB / 380.2 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004026/0.467, allocations: 81.03 kB / 380.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.467, allocations: 8 kB / 380.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.4699, allocations: 1.872 MB / 382.2 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.47, allocations: 7.891 kB / 382.2 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000867/0.4709, allocations: 430.5 kB / 382.6 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.471, allocations: 116.9 kB / 382.7 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.4711, allocations: 4 kB / 382.7 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4715, allocations: 19.94 kB / 382.7 MB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.4716, allocations: 31.94 kB / 382.8 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.4717, allocations: 12 kB / 382.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000213/0.4719, allocations: 156.6 kB / 382.9 MB, free: 8.484 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4719, allocations: 0 / 382.9 MB, free: 8.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007145/0.4726, allocations: 83.75 kB / 383 MB, free: 8.402 MB / 330.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.pulsStart,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.001258/0.4739, allocations: 1.034 MB / 384 MB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008373/0.4748, allocations: 317.5 kB / 384.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.4748, allocations: 0 / 384.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005191/0.4753, allocations: 241.8 kB / 384.6 MB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.4758, allocations: 40.66 kB / 384.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.4774, allocations: 485.3 kB / 385.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4778, allocations: 0.7755 MB / 385.9 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.478, allocations: 79.41 kB / 386 MB, free: 5.332 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.478, allocations: 0 / 386 MB, free: 5.332 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.555/3.033, allocations: 5.549 MB / 391.5 MB, free: 15.79 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat