Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.623e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5547, allocations: 79.64 MB / 422.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.555, allocations: 67.94 kB / 422.3 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02487/0.5799, allocations: 5.574 MB / 427.9 MB, free: 9.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5799, allocations: 0 / 427.9 MB, free: 9.395 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.122e-05/0.58, allocations: 11.98 kB / 427.9 MB, free: 9.383 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001217/0.5812, allocations: 0.5358 MB / 428.5 MB, free: 8.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.5813, allocations: 8.031 kB / 428.5 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.5814, allocations: 69.72 kB / 428.5 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.851e-05/0.5815, allocations: 31.84 kB / 428.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.5819, allocations: 261.6 kB / 428.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/0.582, allocations: 79.8 kB / 428.9 MB, free: 8.359 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.5821, allocations: 31.5 kB / 428.9 MB, free: 8.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006748/0.5828, allocations: 289.3 kB / 429.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.5828, allocations: 0 / 429.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.5829, allocations: 13.88 kB / 429.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.5829, allocations: 4 kB / 429.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005092/0.5834, allocations: 174.7 kB / 429.4 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.586, allocations: 1.137 MB / 430.5 MB, free: 6.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.5864, allocations: 159.4 kB / 430.7 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.5866, allocations: 75.95 kB / 430.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.5867, allocations: 4 kB / 430.8 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/0.5871, allocations: 146.7 kB / 430.9 MB, free: 6.648 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.036e-06/0.5871, allocations: 0 / 430.9 MB, free: 6.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008711/0.588, allocations: 224.2 kB / 431.1 MB, free: 6.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.5881, allocations: 114.3 kB / 431.3 MB, free: 6.328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.5884, allocations: 202.3 kB / 431.5 MB, free: 6.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.5884, allocations: 28.77 kB / 431.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.5886, allocations: 232 kB / 431.7 MB, free: 5.918 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/0.5887, allocations: 68.84 kB / 431.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.5887, allocations: 11 kB / 431.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5889, allocations: 318.1 kB / 432.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.5891, allocations: 65.3 kB / 432.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.5894, allocations: 118.8 kB / 432.3 MB, free: 5.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.5896, allocations: 71.5 kB / 432.3 MB, free: 5.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5896, allocations: 0 / 432.3 MB, free: 5.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000628/0.5902, allocations: 243.9 kB / 432.6 MB, free: 5.148 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.5903, allocations: 8.156 kB / 432.6 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.5903, allocations: 4 kB / 432.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.5907, allocations: 55.06 kB / 432.7 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.5911, allocations: 43.92 kB / 432.7 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.5929, allocations: 1.415 MB / 434.1 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004258/0.5933, allocations: 43.67 kB / 434.2 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.5934, allocations: 11.81 kB / 434.2 MB, free: 3.508 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (32): * Single equations (assignments): 31 * 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.0001452/0.5935, allocations: 118.7 kB / 434.3 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.292e-05/0.5936, allocations: 19.8 kB / 434.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.5937, allocations: 31.73 kB / 434.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5937, allocations: 4 kB / 434.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5937, allocations: 4 kB / 434.3 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5937, allocations: 3.984 kB / 434.3 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004742/0.5942, allocations: 321 kB / 434.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5942, allocations: 4 kB / 434.7 MB, free: 3.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.5946, allocations: 27.98 kB / 434.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002931/0.5949, allocations: 55.06 kB / 434.7 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.5949, allocations: 7.25 kB / 434.7 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001549/0.5965, allocations: 1.324 MB / 436.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5965, allocations: 4.031 kB / 436.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/0.5975, allocations: 318 kB / 436.4 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.5977, allocations: 118 kB / 436.5 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.095e-05/0.5978, allocations: 10.95 kB / 436.5 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.5981, allocations: 18.61 kB / 436.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.5982, allocations: 30.56 kB / 436.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.5983, allocations: 7.562 kB / 436.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002245/0.5985, allocations: 165.8 kB / 436.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5985, allocations: 0 / 436.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005426/0.5991, allocations: 82.28 kB / 436.8 MB, free: 0.8984 MB / 346.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001368/0.6004, allocations: 0.8708 MB / 437.7 MB, free: 80 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007282/0.6012, allocations: 255.7 kB / 437.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.6012, allocations: 4 kB / 437.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.6016, allocations: 183.1 kB / 438.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.6021, allocations: 40.5 kB / 438.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.6047, allocations: 0.6076 MB / 438.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.6051, allocations: 0.764 MB / 439.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.6053, allocations: 82.34 kB / 439.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6053, allocations: 0 / 439.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.659/3.264, allocations: 5.236 MB / 444.8 MB, free: 9.051 MB / 362.7 MB