Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.469e-05, allocations: 8 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2551, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.3846, allocations: 68.35 MB / 332.2 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.385, allocations: 67.95 kB / 332.3 MB, free: 5.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02489/0.4099, allocations: 5.317 MB / 337.6 MB, free: 0 / 282.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.4099, allocations: 0 / 337.6 MB, free: 0 / 282.7 MB Notification: Performance of Transformations before backend: time 4.836e-05/0.41, allocations: 8.047 kB / 337.6 MB, free: 15.99 MB / 298.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.001258/0.4113, allocations: 0.5478 MB / 338.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.4113, allocations: 12.02 kB / 338.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.4115, allocations: 66.48 kB / 338.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.4116, allocations: 35.62 kB / 338.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.412, allocations: 247 kB / 338.5 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.4121, allocations: 84.14 kB / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.4122, allocations: 24 kB / 338.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.413, allocations: 299.4 kB / 338.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.413, allocations: 0 / 338.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.4131, allocations: 12 kB / 338.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.4131, allocations: 8 kB / 338.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005766/0.4137, allocations: 178.4 kB / 339.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.4165, allocations: 1.15 MB / 340.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.417, allocations: 162.5 kB / 340.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.4172, allocations: 77.16 kB / 340.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.4173, allocations: 7.984 kB / 340.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.4177, allocations: 156.3 kB / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 5.39e-06/0.4177, allocations: 0 / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009216/0.4186, allocations: 227.8 kB / 340.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.4187, allocations: 106.8 kB / 340.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.419, allocations: 200.8 kB / 341.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.4191, allocations: 29.7 kB / 341.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.4193, allocations: 230.5 kB / 341.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.663e-05/0.4194, allocations: 71.08 kB / 341.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.4194, allocations: 8 kB / 341.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.4196, allocations: 322.8 kB / 341.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.4198, allocations: 60.56 kB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.4201, allocations: 128.1 kB / 342 MB, free: 11.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.4203, allocations: 69.17 kB / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.4203, allocations: 3.953 kB / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006601/0.421, allocations: 244.4 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.421, allocations: 4 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4211, allocations: 4.156 kB / 342.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004028/0.4215, allocations: 56.83 kB / 342.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.4219, allocations: 47.91 kB / 342.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.4239, allocations: 1.405 MB / 343.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/0.4244, allocations: 43.92 kB / 343.8 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.4245, allocations: 11.95 kB / 343.8 MB, free: 9.25 MB / 298.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.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * 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.0001552/0.4246, allocations: 120.9 kB / 344 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.4247, allocations: 23.72 kB / 344 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.73e-05/0.4248, allocations: 29.95 kB / 344 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4248, allocations: 4 kB / 344 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4248, allocations: 7.938 kB / 344 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4249, allocations: 3.938 kB / 344 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005369/0.4254, allocations: 321.3 kB / 344.3 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4254, allocations: 0 / 344.3 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.4258, allocations: 39.92 kB / 344.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003711/0.4262, allocations: 48.83 kB / 344.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.4262, allocations: 11.98 kB / 344.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.4279, allocations: 1.323 MB / 345.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4279, allocations: 0 / 345.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.429, allocations: 321.6 kB / 346.1 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.4292, allocations: 116.8 kB / 346.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.012e-05/0.4293, allocations: 8 kB / 346.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.4296, allocations: 19.98 kB / 346.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.4297, allocations: 31.94 kB / 346.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.4298, allocations: 11.92 kB / 346.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002727/0.4301, allocations: 165.4 kB / 346.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4301, allocations: 0 / 346.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005327/0.4306, allocations: 83.84 kB / 346.5 MB, free: 6.352 MB / 298.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.pulsStart,switch2.off,switch2.tSwitch,switch2.quenched) * 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.001506/0.4321, allocations: 0.8705 MB / 347.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008506/0.433, allocations: 270.5 kB / 347.6 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4331, allocations: 0 / 347.6 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.4335, allocations: 198.5 kB / 347.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.434, allocations: 42.22 kB / 347.9 MB, free: 4.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002755/0.4367, allocations: 0.5923 MB / 348.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.4372, allocations: 0.7635 MB / 349.2 MB, free: 3.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.4374, allocations: 83.41 kB / 349.3 MB, free: 3.422 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4375, allocations: 7.938 kB / 349.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.717/3.155, allocations: 5.236 MB / 354.6 MB, free: 14.18 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat