Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.174/2.174, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.122e-05/4.13e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4563/0.5657, allocations: 73.75 MB / 373.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.566, allocations: 71.05 kB / 373.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0227/0.5887, allocations: 5.39 MB / 379.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5888, allocations: 0 / 379.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.983e-05/0.5888, allocations: 6.25 kB / 379.1 MB, free: 12.15 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001109/0.5899, allocations: 0.5478 MB / 379.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.59, allocations: 14.62 kB / 379.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.5901, allocations: 63.7 kB / 379.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.625e-05/0.5902, allocations: 36.53 kB / 379.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.5906, allocations: 240.6 kB / 380 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.887e-05/0.5907, allocations: 77.25 kB / 380.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.315e-05/0.5908, allocations: 42.94 kB / 380.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.5914, allocations: 289.9 kB / 380.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.5915, allocations: 0 / 380.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.476e-05/0.5915, allocations: 12.97 kB / 380.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.5915, allocations: 6.812 kB / 380.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.5921, allocations: 187.6 kB / 380.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.5944, allocations: 1.136 MB / 381.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.5948, allocations: 154.1 kB / 381.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.595, allocations: 78.02 kB / 382 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.595, allocations: 6.953 kB / 382 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003354/0.5954, allocations: 153.1 kB / 382.2 MB, free: 10.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.565e-06/0.5954, allocations: 1.531 kB / 382.2 MB, free: 10.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008237/0.5962, allocations: 219.6 kB / 382.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.5963, allocations: 116.7 kB / 382.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.5966, allocations: 199.4 kB / 382.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.5966, allocations: 30.45 kB / 382.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.5967, allocations: 235.5 kB / 382.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.548e-05/0.5968, allocations: 63.91 kB / 383 MB, free: 9.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.5968, allocations: 8.656 kB / 383 MB, free: 9.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.316e-05/0.5969, allocations: 324.1 kB / 383.3 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.5971, allocations: 64.78 kB / 383.4 MB, free: 9.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.5974, allocations: 129.8 kB / 383.5 MB, free: 9.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.5976, allocations: 77.58 kB / 383.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.5976, allocations: 0.9688 kB / 383.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006435/0.5982, allocations: 241.6 kB / 383.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.5983, allocations: 7.719 kB / 383.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.5983, allocations: 1.281 kB / 383.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000365/0.5987, allocations: 55.75 kB / 383.9 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.5991, allocations: 51.48 kB / 383.9 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.6005, allocations: 1.403 MB / 385.4 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.6009, allocations: 44.97 kB / 385.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.6009, allocations: 13.09 kB / 385.4 MB, free: 8.141 MB / 314.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.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.0001136/0.6011, allocations: 129.9 kB / 385.5 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.157e-05/0.6011, allocations: 22.38 kB / 385.6 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.446e-05/0.6012, allocations: 26.11 kB / 385.6 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.6012, allocations: 2.438 kB / 385.6 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6012, allocations: 3.938 kB / 385.6 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.6012, allocations: 1.094 kB / 385.6 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004155/0.6017, allocations: 327 kB / 385.9 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.6017, allocations: 0 / 385.9 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.602, allocations: 33.23 kB / 385.9 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002938/0.6023, allocations: 51.5 kB / 386 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.6023, allocations: 6.219 kB / 386 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.6035, allocations: 1.326 MB / 387.3 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6035, allocations: 0 / 387.3 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008789/0.6044, allocations: 316.6 kB / 387.6 MB, free: 6.441 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.6046, allocations: 114.8 kB / 387.7 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.6046, allocations: 11.27 kB / 387.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.6049, allocations: 22.42 kB / 387.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.6051, allocations: 35.55 kB / 387.8 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.6051, allocations: 6.75 kB / 387.8 MB, free: 6.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001988/0.6053, allocations: 161.4 kB / 388 MB, free: 6.242 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6053, allocations: 0 / 388 MB, free: 6.242 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005076/0.6058, allocations: 85.48 kB / 388.1 MB, free: 6.227 MB / 314.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.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.0015/0.6074, allocations: 0.8694 MB / 388.9 MB, free: 21.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007768/0.6082, allocations: 278.8 kB / 389.2 MB, free: 21.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6082, allocations: 1.156 kB / 389.2 MB, free: 21.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.6086, allocations: 191 kB / 389.4 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004346/0.6091, allocations: 41.2 kB / 389.4 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.6116, allocations: 0.5968 MB / 390 MB, free: 21.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.612, allocations: 0.7639 MB / 390.8 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.6122, allocations: 91.84 kB / 390.9 MB, free: 20.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6122, allocations: 3.938 kB / 390.9 MB, free: 20.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.601/3.213, allocations: 5.229 MB / 396.1 MB, free: 20 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat