Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.153e-05, allocations: 0 / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.09885, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4108/0.5098, allocations: 77.98 MB / 395 MB, free: 10.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5101, allocations: 63.97 kB / 395.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02547/0.5356, allocations: 5.38 MB / 400.4 MB, free: 5.457 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5356, allocations: 3.938 kB / 400.5 MB, free: 5.453 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.432e-05/0.5357, allocations: 12 kB / 400.5 MB, free: 5.441 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.001414/0.5371, allocations: 0.5443 MB / 401 MB, free: 4.871 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.5372, allocations: 8.031 kB / 401 MB, free: 4.863 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.5373, allocations: 64.61 kB / 401.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.5375, allocations: 35.61 kB / 401.1 MB, free: 4.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004638/0.538, allocations: 258 kB / 401.4 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.5381, allocations: 80.67 kB / 401.4 MB, free: 4.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.5382, allocations: 31.88 kB / 401.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007539/0.539, allocations: 284.9 kB / 401.8 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.539, allocations: 0 / 401.8 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.068e-05/0.5391, allocations: 12.19 kB / 401.8 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.5391, allocations: 4 kB / 401.8 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.5397, allocations: 184 kB / 401.9 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.5424, allocations: 1.14 MB / 403.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.543, allocations: 152.2 kB / 403.2 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.5432, allocations: 72.11 kB / 403.3 MB, free: 2.848 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.5432, allocations: 15.36 kB / 403.3 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/0.5436, allocations: 146.5 kB / 403.5 MB, free: 2.695 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.236e-06/0.5436, allocations: 0 / 403.5 MB, free: 2.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009113/0.5446, allocations: 230.5 kB / 403.7 MB, free: 2.504 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.5447, allocations: 106.8 kB / 403.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.545, allocations: 202.6 kB / 404 MB, free: 2.203 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.5451, allocations: 32.45 kB / 404 MB, free: 2.172 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.5452, allocations: 168.9 kB / 404.2 MB, free: 2.027 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.5453, allocations: 60.48 kB / 404.2 MB, free: 1.977 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.5454, allocations: 3.062 kB / 404.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.5455, allocations: 339.6 kB / 404.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.5457, allocations: 61.5 kB / 404.6 MB, free: 1.605 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.546, allocations: 121 kB / 404.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.5463, allocations: 83.94 kB / 404.8 MB, free: 1.438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.5463, allocations: 4 kB / 404.8 MB, free: 1.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006711/0.547, allocations: 242.9 kB / 405.1 MB, free: 1.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.547, allocations: 11.95 kB / 405.1 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.547, allocations: 0 / 405.1 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004091/0.5475, allocations: 65.84 kB / 405.2 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.5478, allocations: 47.11 kB / 405.2 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001781/0.5496, allocations: 1.407 MB / 406.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.5501, allocations: 39.58 kB / 406.7 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.5502, allocations: 11.94 kB / 406.7 MB, free: 15.61 MB / 330.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.0001409/0.5503, allocations: 124.3 kB / 406.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/0.5504, allocations: 23.72 kB / 406.8 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.5505, allocations: 32.83 kB / 406.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5505, allocations: 0 / 406.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5505, allocations: 0 / 406.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.5505, allocations: 4 kB / 406.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.551, allocations: 334.3 kB / 407.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.551, allocations: 0 / 407.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.5514, allocations: 31.92 kB / 407.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002979/0.5517, allocations: 52.14 kB / 407.3 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.5517, allocations: 7.922 kB / 407.3 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.5532, allocations: 1.314 MB / 408.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5532, allocations: 8 kB / 408.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009949/0.5542, allocations: 325.3 kB / 408.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.5544, allocations: 108.5 kB / 409 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.5545, allocations: 15.91 kB / 409 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.5548, allocations: 23.42 kB / 409 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.555, allocations: 27.77 kB / 409.1 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.555, allocations: 7.984 kB / 409.1 MB, free: 13.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002219/0.5552, allocations: 159.1 kB / 409.2 MB, free: 13.06 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5553, allocations: 0 / 409.2 MB, free: 13.06 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005547/0.5558, allocations: 79.53 kB / 409.3 MB, free: 12.99 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: 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.001419/0.5573, allocations: 0.8721 MB / 410.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007511/0.5581, allocations: 271.1 kB / 410.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.5581, allocations: 4 kB / 410.5 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.5585, allocations: 184.5 kB / 410.6 MB, free: 11.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.559, allocations: 32.05 kB / 410.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.5616, allocations: 0.5785 MB / 411.2 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.562, allocations: 0.7713 MB / 412 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.5622, allocations: 22.08 kB / 412 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.5624, allocations: 81.16 kB / 412.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5624, allocations: 0 / 412.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03022/0.5926, allocations: 4.987 MB / 417.1 MB, free: 5.414 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003121/0.593, allocations: 177.7 kB / 417.3 MB, free: 5.191 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.214, allocations: 4 kB / 417.3 MB, free: 5.188 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat