Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.392/2.392, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.957e-05/2.979e-05, allocations: 3.344 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.604, allocations: 75.18 MB / 369.5 MB, free: 6.898 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.6044, allocations: 69.84 kB / 369.5 MB, free: 6.898 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04314/0.6475, allocations: 8.127 MB / 377.7 MB, free: 21.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.6476, allocations: 0 / 377.7 MB, free: 21.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.571e-05/0.6476, allocations: 8 kB / 377.7 MB, free: 21.67 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003288/0.6509, allocations: 0.836 MB / 378.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.651, allocations: 11.34 kB / 378.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.6512, allocations: 54.56 kB / 378.6 MB, free: 21.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000721/0.652, allocations: 371 kB / 378.9 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/0.652, allocations: 15.06 kB / 379 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.6522, allocations: 27.28 kB / 379 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.6533, allocations: 360.1 kB / 379.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.6544, allocations: 411.2 kB / 379.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.6544, allocations: 0 / 379.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.073e-05/0.6545, allocations: 0 / 379.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.6546, allocations: 11.56 kB / 379.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005854/0.6604, allocations: 1.964 MB / 381.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006317/0.6668, allocations: 0.6967 MB / 382.4 MB, free: 19.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007509/0.6676, allocations: 247.8 kB / 382.6 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.475e-05/0.6677, allocations: 7.859 kB / 382.7 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007307/0.6684, allocations: 286.8 kB / 382.9 MB, free: 19.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 4.369e-06/0.6685, allocations: 0 / 382.9 MB, free: 19.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.002163/0.6706, allocations: 0.5202 MB / 383.5 MB, free: 19.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.6707, allocations: 88.34 kB / 383.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005558/0.6713, allocations: 286.6 kB / 383.8 MB, free: 18.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.6714, allocations: 25.7 kB / 383.8 MB, free: 18.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.6717, allocations: 230.4 kB / 384.1 MB, free: 18.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.6718, allocations: 123.9 kB / 384.2 MB, free: 18.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.089e-05/0.6719, allocations: 4 kB / 384.2 MB, free: 18.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.6721, allocations: 352.4 kB / 384.5 MB, free: 18.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.6726, allocations: 152.3 kB / 384.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005369/0.6732, allocations: 192.9 kB / 384.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004833/0.6737, allocations: 156.6 kB / 385 MB, free: 18.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.6737, allocations: 0 / 385 MB, free: 18.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001939/0.6756, allocations: 0.542 MB / 385.6 MB, free: 18.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.954e-05/0.6757, allocations: 29.58 kB / 385.6 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6757, allocations: 3.875 kB / 385.6 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.6773, allocations: 330.6 kB / 385.9 MB, free: 17.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009524/0.6783, allocations: 98.7 kB / 386 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/0.6913, allocations: 3 MB / 389 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.6927, allocations: 97.75 kB / 389.1 MB, free: 16.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-05/0.6928, allocations: 19.48 kB / 389.1 MB, free: 16.27 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.6931, allocations: 116.5 kB / 389.3 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001974/0.6951, allocations: 0.527 MB / 389.8 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.6952, allocations: 42.88 kB / 389.8 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.6954, allocations: 42.88 kB / 389.9 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.6954, allocations: 7.922 kB / 389.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.6954, allocations: 0 / 389.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.6955, allocations: 7.953 kB / 389.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009163/0.6964, allocations: 0.5072 MB / 390.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.6964, allocations: 0 / 390.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/0.6973, allocations: 93.75 kB / 390.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.6988, allocations: 331.3 kB / 390.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.413e-05/0.6989, allocations: 3.969 kB / 390.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/0.7117, allocations: 2.997 MB / 393.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.7117, allocations: 0 / 393.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/0.7144, allocations: 0.7944 MB / 394.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.7148, allocations: 170.5 kB / 394.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.715, allocations: 7.078 kB / 394.8 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.7162, allocations: 75.14 kB / 394.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002297/0.7165, allocations: 49.55 kB / 394.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.7166, allocations: 13.61 kB / 394.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003818/0.717, allocations: 227.7 kB / 395.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.623e-06/0.717, allocations: 3.688 kB / 395.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009701/0.718, allocations: 151.8 kB / 395.3 MB, free: 13.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003095/0.7211, allocations: 1.36 MB / 396.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.7234, allocations: 0.6281 MB / 397.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.7235, allocations: 0 / 397.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.7251, allocations: 414.1 kB / 397.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006987/0.7258, allocations: 62.83 kB / 397.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004523/0.7303, allocations: 0.8265 MB / 398.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.7309, allocations: 0.844 MB / 399.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004668/0.7313, allocations: 34.66 kB / 399.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.7317, allocations: 142.4 kB / 399.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/0.7317, allocations: 0 / 399.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08725/0.819, allocations: 12.87 MB / 412.5 MB, free: 3.988 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000361/0.8194, allocations: 143.6 kB / 412.6 MB, free: 3.801 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.687/4.506, allocations: 3.938 kB / 412.6 MB, free: 3.797 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat does not exist to compare? outputFormat=mat