Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.588e-05/3.591e-05, allocations: 4 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.09919, allocations: 44.49 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4733/0.5725, allocations: 73.77 MB / 373.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004137/0.573, allocations: 66.92 kB / 373.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03057/0.6036, allocations: 5.395 MB / 379.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6037, allocations: 0 / 379.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.6037, allocations: 5.625 kB / 379.2 MB, free: 12.07 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.00117/0.6049, allocations: 0.5447 MB / 379.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.605, allocations: 9.781 kB / 379.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.202e-05/0.6051, allocations: 69.69 kB / 379.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.9e-05/0.6052, allocations: 33.94 kB / 379.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.6055, allocations: 247.7 kB / 380.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.319e-05/0.6056, allocations: 78.09 kB / 380.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.6057, allocations: 34.19 kB / 380.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.6064, allocations: 286.1 kB / 380.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.6064, allocations: 0 / 380.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.6065, allocations: 11.64 kB / 380.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.6065, allocations: 7.156 kB / 380.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.607, allocations: 180.2 kB / 380.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.6096, allocations: 1.141 MB / 381.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.6101, allocations: 144.6 kB / 382 MB, free: 10.56 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.6103, allocations: 92.03 kB / 382.1 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.6103, allocations: 1.281 kB / 382.1 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.6107, allocations: 156.3 kB / 382.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.745e-06/0.6107, allocations: 224 / 382.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000865/0.6116, allocations: 217.4 kB / 382.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.6116, allocations: 112.1 kB / 382.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.612, allocations: 202.5 kB / 382.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.612, allocations: 33.16 kB / 382.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.6122, allocations: 174.8 kB / 382.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.101e-05/0.6122, allocations: 66.98 kB / 383 MB, free: 9.977 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.6123, allocations: 4.219 kB / 383 MB, free: 9.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.728e-05/0.6124, allocations: 341.1 kB / 383.3 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.6125, allocations: 59.22 kB / 383.4 MB, free: 9.652 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.6128, allocations: 128.9 kB / 383.5 MB, free: 9.582 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.613, allocations: 77.59 kB / 383.6 MB, free: 9.574 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.613, allocations: 3.953 kB / 383.6 MB, free: 9.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006332/0.6137, allocations: 250.8 kB / 383.8 MB, free: 9.508 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.6137, allocations: 8.953 kB / 383.9 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.6137, allocations: 1.219 kB / 383.9 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.6141, allocations: 57.22 kB / 383.9 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003663/0.6145, allocations: 50.12 kB / 384 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.616, allocations: 1.399 MB / 385.4 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.6166, allocations: 46.47 kB / 385.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.6166, allocations: 14.27 kB / 385.4 MB, free: 8.129 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.0001218/0.6167, allocations: 116.1 kB / 385.5 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.6168, allocations: 25.44 kB / 385.6 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.597e-05/0.6169, allocations: 29.78 kB / 385.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.6169, allocations: 1.281 kB / 385.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6169, allocations: 1.344 kB / 385.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.6169, allocations: 5.078 kB / 385.6 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004736/0.6174, allocations: 318.9 kB / 385.9 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6174, allocations: 3.938 kB / 385.9 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003202/0.6178, allocations: 35.73 kB / 385.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003077/0.6181, allocations: 54.22 kB / 386 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.6181, allocations: 6.047 kB / 386 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.6194, allocations: 1.321 MB / 387.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.6195, allocations: 1.094 kB / 387.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.6205, allocations: 321.2 kB / 387.6 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.6207, allocations: 114.2 kB / 387.8 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.6207, allocations: 10.06 kB / 387.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000296/0.621, allocations: 21.81 kB / 387.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.6212, allocations: 29.78 kB / 387.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.6212, allocations: 7.812 kB / 387.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001952/0.6214, allocations: 160 kB / 388 MB, free: 6.238 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6214, allocations: 0 / 388 MB, free: 6.238 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005628/0.622, allocations: 92.19 kB / 388.1 MB, free: 6.219 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.001497/0.6235, allocations: 0.8666 MB / 388.9 MB, free: 21.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007536/0.6243, allocations: 273.9 kB / 389.2 MB, free: 21.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6243, allocations: 1.281 kB / 389.2 MB, free: 21.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.6247, allocations: 182.1 kB / 389.4 MB, free: 21.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.6251, allocations: 40.97 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.002413/0.6276, allocations: 0.5732 MB / 390 MB, free: 21.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.628, allocations: 0.7652 MB / 390.8 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.6282, allocations: 25.11 kB / 390.8 MB, free: 20.37 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.6284, allocations: 80.59 kB / 390.9 MB, free: 20.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6284, allocations: 0 / 390.9 MB, free: 20.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.6551, allocations: 4.992 MB / 395.9 MB, free: 19.83 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.6553, allocations: 177.7 kB / 396 MB, free: 19.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.716/3.371, allocations: 4 kB / 396 MB, free: 19.61 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat