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.95/1.95, allocations: 194.9 MB / 208.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.455e-05/3.46e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.0934, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.4927, allocations: 73.99 MB / 373.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4931, allocations: 66.53 kB / 374 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02011/0.5132, allocations: 4.874 MB / 378.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.5132, allocations: 0 / 378.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.627e-05/0.5133, allocations: 6.312 kB / 378.9 MB, free: 11.82 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.001188/0.5145, allocations: 0.5418 MB / 379.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.5145, allocations: 11.03 kB / 379.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.9e-05/0.5146, allocations: 59.78 kB / 379.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.5148, allocations: 38.34 kB / 379.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.5152, allocations: 269.8 kB / 379.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.5152, allocations: 22.44 kB / 379.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.237e-05/0.5153, allocations: 27.48 kB / 379.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.516, allocations: 265.7 kB / 380.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.516, allocations: 0 / 380.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.885e-05/0.5161, allocations: 13.03 kB / 380.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.5161, allocations: 8.109 kB / 380.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005354/0.5167, allocations: 187 kB / 380.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.5192, allocations: 1.162 MB / 381.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006823/0.5199, allocations: 202.5 kB / 381.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004053/0.5203, allocations: 138.5 kB / 381.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.5203, allocations: 5.625 kB / 381.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.5207, allocations: 164.1 kB / 382 MB, free: 10.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 3.216e-06/0.5207, allocations: 0 / 382 MB, free: 10.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008744/0.5216, allocations: 266.9 kB / 382.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.5217, allocations: 136.7 kB / 382.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.522, allocations: 220 kB / 382.6 MB, free: 9.973 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.5221, allocations: 30.67 kB / 382.6 MB, free: 9.941 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.5222, allocations: 225.8 kB / 382.8 MB, free: 9.762 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.85e-05/0.5223, allocations: 69 kB / 382.9 MB, free: 9.723 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.091e-05/0.5223, allocations: 5.219 kB / 382.9 MB, free: 9.723 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.5224, allocations: 318.3 kB / 383.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.5226, allocations: 71.88 kB / 383.3 MB, free: 9.402 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.5229, allocations: 111.2 kB / 383.4 MB, free: 9.355 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.5231, allocations: 74.19 kB / 383.5 MB, free: 9.348 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5231, allocations: 0 / 383.5 MB, free: 9.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006631/0.5238, allocations: 270.8 kB / 383.7 MB, free: 9.285 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.5238, allocations: 5.531 kB / 383.7 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.5238, allocations: 1.188 kB / 383.7 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005415/0.5244, allocations: 95.12 kB / 383.8 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.5246, allocations: 28.33 kB / 383.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.5275, allocations: 1.979 MB / 385.8 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000447/0.528, allocations: 39.83 kB / 385.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.5281, allocations: 11.14 kB / 385.9 MB, free: 7.879 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.0001222/0.5282, allocations: 121.1 kB / 386 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.5283, allocations: 20.88 kB / 386 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.95e-05/0.5284, allocations: 30.02 kB / 386.1 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.5284, allocations: 2.375 kB / 386.1 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5284, allocations: 1.219 kB / 386.1 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.5284, allocations: 1.453 kB / 386.1 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.5299, allocations: 0.7957 MB / 386.9 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.53, allocations: 1.375 kB / 386.9 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.5302, allocations: 18.95 kB / 386.9 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004318/0.5307, allocations: 85.77 kB / 387 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.5307, allocations: 6.625 kB / 387 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00303/0.5337, allocations: 1.942 MB / 388.9 MB, free: 21.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5338, allocations: 0 / 388.9 MB, free: 21.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009218/0.5347, allocations: 456.5 kB / 389.4 MB, free: 21.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.5349, allocations: 127 kB / 389.5 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/0.535, allocations: 5.812 kB / 389.5 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003732/0.5354, allocations: 21.95 kB / 389.5 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.5355, allocations: 32.72 kB / 389.5 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.5356, allocations: 7.719 kB / 389.5 MB, free: 21.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000258/0.5358, allocations: 180.4 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5359, allocations: 5.438 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006941/0.5366, allocations: 92.31 kB / 389.8 MB, free: 21.54 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.001302/0.5379, allocations: 1.061 MB / 390.9 MB, free: 20.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009243/0.5388, allocations: 329.1 kB / 391.2 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.5389, allocations: 1.344 kB / 391.2 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005384/0.5394, allocations: 241.9 kB / 391.4 MB, free: 20.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.54, allocations: 53.23 kB / 391.5 MB, free: 20.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.5418, allocations: 0.4908 MB / 392 MB, free: 20.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.5422, allocations: 0.7734 MB / 392.7 MB, free: 19.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.5424, allocations: 81.06 kB / 392.8 MB, free: 19.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5424, allocations: 0 / 392.8 MB, free: 19.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.859/3.402, allocations: 5.698 MB / 398.5 MB, free: 19.19 MB / 330.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