Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.41e-05, allocations: 4 kB / 269.5 MB, free: 6.293 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5447, allocations: 78.64 MB / 395.7 MB, free: 8.996 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004015/0.5452, allocations: 64.66 kB / 395.7 MB, free: 8.965 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0423/0.5875, allocations: 6.09 MB / 401.8 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5875, allocations: 0 / 401.8 MB, free: 3.797 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.301e-05/0.5876, allocations: 8 kB / 401.8 MB, free: 3.789 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001977/0.5896, allocations: 0.5762 MB / 402.4 MB, free: 3.191 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.75e-05/0.5897, allocations: 8.031 kB / 402.4 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.5899, allocations: 72.97 kB / 402.5 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.5901, allocations: 39.53 kB / 402.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006473/0.5908, allocations: 266.9 kB / 402.8 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.5909, allocations: 79.56 kB / 402.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.5911, allocations: 31.38 kB / 402.9 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.5922, allocations: 322.5 kB / 403.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.5923, allocations: 0 / 403.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.393e-05/0.5924, allocations: 11.81 kB / 403.2 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.5924, allocations: 8 kB / 403.2 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009015/0.5934, allocations: 198.8 kB / 403.4 MB, free: 2.324 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.5981, allocations: 1.391 MB / 404.8 MB, free: 1.035 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.5988, allocations: 168.5 kB / 405 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.5993, allocations: 75.36 kB / 405 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.5993, allocations: 0 / 405 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005123/0.5999, allocations: 149.9 kB / 405.2 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 6.222e-06/0.5999, allocations: 0 / 405.2 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001184/0.6011, allocations: 223 kB / 405.4 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.221e-05/0.6012, allocations: 110.6 kB / 405.5 MB, free: 420 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.6016, allocations: 233.1 kB / 405.7 MB, free: 224 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.6017, allocations: 28.64 kB / 405.8 MB, free: 192 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.6018, allocations: 204.9 kB / 406 MB, free: 16 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.602, allocations: 71.7 kB / 406 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.602, allocations: 10.88 kB / 406.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.6022, allocations: 336.4 kB / 406.4 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.6024, allocations: 66.81 kB / 406.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.6027, allocations: 164.2 kB / 406.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.6029, allocations: 80.16 kB / 406.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.6029, allocations: 4.031 kB / 406.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001003/0.604, allocations: 300 kB / 407 MB, free: 15.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.604, allocations: 4.281 kB / 407 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.604, allocations: 8 kB / 407 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003652/0.6044, allocations: 54.5 kB / 407.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.6049, allocations: 63.03 kB / 407.1 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.6068, allocations: 1.406 MB / 408.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.6073, allocations: 46.89 kB / 408.6 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.6074, allocations: 15.38 kB / 408.6 MB, free: 13.46 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.6076, allocations: 122.5 kB / 408.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.259e-05/0.6076, allocations: 27.62 kB / 408.7 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.974e-05/0.6077, allocations: 39.91 kB / 408.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.6077, allocations: 3.938 kB / 408.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.6078, allocations: 0 / 408.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.6078, allocations: 3.984 kB / 408.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.6083, allocations: 339 kB / 409.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.6083, allocations: 0 / 409.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003885/0.6087, allocations: 43.91 kB / 409.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003108/0.609, allocations: 55.62 kB / 409.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.6091, allocations: 7.297 kB / 409.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001539/0.6106, allocations: 1.322 MB / 410.5 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6107, allocations: 3.938 kB / 410.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.6117, allocations: 334.8 kB / 410.9 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.6119, allocations: 108.2 kB / 411 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.778e-05/0.612, allocations: 15.38 kB / 411 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.6123, allocations: 23.92 kB / 411 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6125, allocations: 27.2 kB / 411 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.6125, allocations: 11.36 kB / 411 MB, free: 11.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002593/0.6128, allocations: 180.4 kB / 411.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6128, allocations: 0 / 411.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005964/0.6134, allocations: 96.94 kB / 411.3 MB, free: 10.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001431/0.6148, allocations: 0.8732 MB / 412.2 MB, free: 9.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007757/0.6156, allocations: 284.7 kB / 412.5 MB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6157, allocations: 0 / 412.5 MB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003987/0.6161, allocations: 182.2 kB / 412.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.6165, allocations: 33.23 kB / 412.7 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.6189, allocations: 0.5647 MB / 413.2 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.6194, allocations: 0.7794 MB / 414 MB, free: 8.184 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002096/0.6196, allocations: 30.05 kB / 414 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.6198, allocations: 95.03 kB / 414.1 MB, free: 8.125 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.6198, allocations: 0 / 414.1 MB, free: 8.125 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.6553, allocations: 5.312 MB / 419.5 MB, free: 2.891 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002924/0.6556, allocations: 192.2 kB / 419.6 MB, free: 2.664 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.179, allocations: 0 / 419.6 MB, free: 2.664 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat