Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.107/2.107, allocations: 225.8 MB / 239.3 MB, free: 1.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.586e-05, allocations: 4 kB / 292.8 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 50.39 MB / 343.1 MB, free: 8.984 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.464/0.5751, allocations: 80.28 MB / 423.4 MB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5755, allocations: 71.91 kB / 423.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02587/0.6013, allocations: 6.295 MB / 429.8 MB, free: 6.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6014, allocations: 0 / 429.8 MB, free: 6.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.449e-05/0.6014, allocations: 11.5 kB / 429.8 MB, free: 6.414 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001284/0.6027, allocations: 0.5869 MB / 430.4 MB, free: 5.926 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.6028, allocations: 7.875 kB / 430.4 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.6029, allocations: 74.95 kB / 430.5 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.6031, allocations: 42.72 kB / 430.5 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003931/0.6035, allocations: 266.9 kB / 430.8 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.833e-05/0.6036, allocations: 84.86 kB / 430.9 MB, free: 5.535 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.6037, allocations: 36.83 kB / 430.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.6044, allocations: 322.3 kB / 431.2 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.6044, allocations: 0 / 431.2 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.6045, allocations: 14.59 kB / 431.2 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.6045, allocations: 7.719 kB / 431.2 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.6051, allocations: 198.3 kB / 431.4 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.6079, allocations: 1.376 MB / 432.8 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004231/0.6084, allocations: 157.5 kB / 433 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.6086, allocations: 86.67 kB / 433 MB, free: 4.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.6086, allocations: 3.953 kB / 433 MB, free: 4.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003423/0.609, allocations: 146.1 kB / 433.2 MB, free: 4.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.956e-06/0.609, allocations: 4 kB / 433.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008389/0.6098, allocations: 222.4 kB / 433.4 MB, free: 4.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.6099, allocations: 114.1 kB / 433.5 MB, free: 4.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.6103, allocations: 228.5 kB / 433.7 MB, free: 3.965 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.6103, allocations: 28.64 kB / 433.8 MB, free: 3.934 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.6105, allocations: 207.3 kB / 434 MB, free: 3.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.6105, allocations: 69.58 kB / 434 MB, free: 3.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.6106, allocations: 9.625 kB / 434 MB, free: 3.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6107, allocations: 332.2 kB / 434.4 MB, free: 3.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.6109, allocations: 66.56 kB / 434.4 MB, free: 3.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.6112, allocations: 150.3 kB / 434.6 MB, free: 3.305 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.6114, allocations: 83.22 kB / 434.7 MB, free: 3.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.6114, allocations: 0 / 434.7 MB, free: 3.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009391/0.6124, allocations: 316.4 kB / 435 MB, free: 3.188 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.6124, allocations: 11.47 kB / 435 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.6124, allocations: 3.906 kB / 435 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003658/0.6128, allocations: 54.19 kB / 435 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000445/0.6133, allocations: 62.25 kB / 435.1 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.6152, allocations: 1.41 MB / 436.5 MB, free: 17.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/0.6158, allocations: 43.08 kB / 436.6 MB, free: 17.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/0.6158, allocations: 17.45 kB / 436.6 MB, free: 17.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.0001806/0.616, allocations: 122 kB / 436.7 MB, free: 17.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.029e-05/0.6161, allocations: 31.16 kB / 436.7 MB, free: 17.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.752e-05/0.6162, allocations: 32.05 kB / 436.8 MB, free: 17.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.6162, allocations: 3.844 kB / 436.8 MB, free: 17.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6162, allocations: 0 / 436.8 MB, free: 17.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.6162, allocations: 0 / 436.8 MB, free: 17.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.6168, allocations: 345.7 kB / 437.1 MB, free: 17.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.6168, allocations: 4 kB / 437.1 MB, free: 17.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.6172, allocations: 34.64 kB / 437.1 MB, free: 17.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002944/0.6175, allocations: 54.47 kB / 437.2 MB, free: 17.31 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.6175, allocations: 3.844 kB / 437.2 MB, free: 17.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.6191, allocations: 1.328 MB / 438.5 MB, free: 16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6192, allocations: 0 / 438.5 MB, free: 16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.6202, allocations: 341.8 kB / 438.9 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.6204, allocations: 112 kB / 439 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.342e-05/0.6205, allocations: 3.938 kB / 439 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.6208, allocations: 23.3 kB / 439 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.621, allocations: 31.09 kB / 439 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.621, allocations: 11.38 kB / 439 MB, free: 15.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000261/0.6213, allocations: 177.8 kB / 439.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6213, allocations: 0 / 439.2 MB, free: 15.65 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005866/0.6219, allocations: 90.34 kB / 439.3 MB, free: 15.63 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001479/0.6234, allocations: 0.8826 MB / 440.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007868/0.6242, allocations: 281.9 kB / 440.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.6242, allocations: 0 / 440.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003975/0.6246, allocations: 197.3 kB / 440.6 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/0.6251, allocations: 35.36 kB / 440.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.6275, allocations: 0.5476 MB / 441.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.6279, allocations: 0.7793 MB / 442 MB, free: 13.65 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002028/0.6281, allocations: 21.58 kB / 442 MB, free: 13.64 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.6283, allocations: 99.5 kB / 442.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6283, allocations: 0 / 442.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03709/0.6654, allocations: 5.321 MB / 447.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003775/0.6658, allocations: 188.2 kB / 447.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.625/3.291, allocations: 4 kB / 447.6 MB, free: 10.82 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat