Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.449/2.449, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.867e-05, allocations: 2.75 kB / 249.8 MB, free: 5.234 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1019, allocations: 44.52 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4412/0.5432, allocations: 73.31 MB / 367.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.5435, allocations: 67.12 kB / 367.7 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02157/0.5651, allocations: 4.825 MB / 372.5 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5651, allocations: 0 / 372.5 MB, free: 22.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.762e-05/0.5652, allocations: 3.875 kB / 372.5 MB, free: 22.49 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.001245/0.5664, allocations: 0.543 MB / 373 MB, free: 22.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.5665, allocations: 11.84 kB / 373.1 MB, free: 22.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.5666, allocations: 38.91 kB / 373.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.5671, allocations: 272.4 kB / 373.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.5672, allocations: 7.75 kB / 373.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/0.5672, allocations: 15.22 kB / 373.4 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005548/0.5678, allocations: 177.1 kB / 373.6 MB, free: 21.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006059/0.5684, allocations: 235.7 kB / 373.8 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.5685, allocations: 2.344 kB / 373.8 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.5685, allocations: 4 kB / 373.8 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.5685, allocations: 7.656 kB / 373.8 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.5711, allocations: 1.098 MB / 374.9 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006985/0.5718, allocations: 203.5 kB / 375.1 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.5722, allocations: 131 kB / 375.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.5723, allocations: 192 / 375.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.5726, allocations: 155 kB / 375.4 MB, free: 21.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.414e-06/0.5727, allocations: 3.906 kB / 375.4 MB, free: 21.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008701/0.5735, allocations: 239.8 kB / 375.6 MB, free: 20.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.5736, allocations: 139.3 kB / 375.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.574, allocations: 192.5 kB / 375.9 MB, free: 20.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.574, allocations: 26.98 kB / 376 MB, free: 20.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.5742, allocations: 175.4 kB / 376.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/0.5743, allocations: 57.11 kB / 376.2 MB, free: 20.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.5743, allocations: 4.031 kB / 376.2 MB, free: 20.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5745, allocations: 342.9 kB / 376.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.5747, allocations: 58.12 kB / 376.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.5749, allocations: 103.5 kB / 376.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.5752, allocations: 70.5 kB / 376.8 MB, free: 20.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.5752, allocations: 0 / 376.8 MB, free: 20.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006881/0.5759, allocations: 251.1 kB / 377 MB, free: 20.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.5759, allocations: 11.7 kB / 377 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.5759, allocations: 0 / 377 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000564/0.5765, allocations: 99.73 kB / 377.1 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.5768, allocations: 26.53 kB / 377.1 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.5801, allocations: 1.924 MB / 379.1 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.5806, allocations: 33.64 kB / 379.1 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.5807, allocations: 7.859 kB / 379.1 MB, free: 18.74 MB / 314.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.0001654/0.5808, allocations: 124.3 kB / 379.2 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007086/0.5816, allocations: 251 kB / 379.5 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.5816, allocations: 23.22 kB / 379.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.5817, allocations: 35.52 kB / 379.5 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.5818, allocations: 3.875 kB / 379.5 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5818, allocations: 0 / 379.5 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.5818, allocations: 0 / 379.5 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.5832, allocations: 0.7196 MB / 380.3 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5833, allocations: 0 / 380.3 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.5835, allocations: 22.23 kB / 380.3 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004309/0.584, allocations: 91.61 kB / 380.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.584, allocations: 3.188 kB / 380.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003172/0.5872, allocations: 1.852 MB / 382.2 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.5872, allocations: 3.953 kB / 382.2 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.5882, allocations: 437.2 kB / 382.7 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.5884, allocations: 118.3 kB / 382.8 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.438e-05/0.5885, allocations: 3.625 kB / 382.8 MB, free: 16.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.5889, allocations: 30.45 kB / 382.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5891, allocations: 33.05 kB / 382.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.5891, allocations: 15.47 kB / 382.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002225/0.5893, allocations: 151.5 kB / 383 MB, free: 16.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5894, allocations: 0 / 383 MB, free: 16.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000848/0.5902, allocations: 81.56 kB / 383.1 MB, free: 16.43 MB / 314.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.001415/0.5916, allocations: 1.043 MB / 384.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009377/0.5926, allocations: 324.8 kB / 384.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5926, allocations: 0 / 384.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.5932, allocations: 240.2 kB / 384.7 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.5938, allocations: 38.92 kB / 384.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.5956, allocations: 433.8 kB / 385.1 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.5961, allocations: 0.7815 MB / 385.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.5963, allocations: 19.3 kB / 385.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.5965, allocations: 84.23 kB / 386 MB, free: 14.45 MB / 314.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5965, allocations: 0 / 386 MB, free: 14.45 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05955/0.656, allocations: 5.75 MB / 391.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002728/0.6564, allocations: 158.6 kB / 391.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.088/3.745, allocations: 0 / 391.9 MB, free: 11.75 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat