Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.384/2.384, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.586e-05/2.577e-05, allocations: 3.094 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5099/0.6417, allocations: 73.08 MB / 367.4 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003936/0.6422, allocations: 71.88 kB / 367.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03553/0.6777, allocations: 5.338 MB / 372.8 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6778, allocations: 4 kB / 372.8 MB, free: 22.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.6778, allocations: 7.719 kB / 372.8 MB, free: 22.52 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.001302/0.6791, allocations: 0.5418 MB / 373.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.6792, allocations: 7.625 kB / 373.3 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.6793, allocations: 34.81 kB / 373.4 MB, free: 22.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004305/0.6798, allocations: 248.1 kB / 373.6 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.717e-05/0.6799, allocations: 67.89 kB / 373.7 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.68, allocations: 23.69 kB / 373.7 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006101/0.6806, allocations: 168 kB / 373.9 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000654/0.6813, allocations: 253.9 kB / 374.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.6813, allocations: 0 / 374.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.6814, allocations: 0 / 374.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.6814, allocations: 7.75 kB / 374.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.6839, allocations: 1.075 MB / 375.2 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.6843, allocations: 139.7 kB / 375.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.6846, allocations: 70.31 kB / 375.4 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.6846, allocations: 8.156 kB / 375.4 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003381/0.685, allocations: 152.1 kB / 375.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.835e-06/0.685, allocations: 0 / 375.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000849/0.6858, allocations: 201.4 kB / 375.8 MB, free: 20.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.6859, allocations: 102.8 kB / 375.9 MB, free: 20.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.6861, allocations: 170.8 kB / 376 MB, free: 20.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.6862, allocations: 25.7 kB / 376.1 MB, free: 20.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.6863, allocations: 179.7 kB / 376.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.767e-05/0.6864, allocations: 62.19 kB / 376.3 MB, free: 20.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.6864, allocations: 3.938 kB / 376.3 MB, free: 20.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6866, allocations: 325.6 kB / 376.6 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.6868, allocations: 58.14 kB / 376.7 MB, free: 20.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.687, allocations: 122 kB / 376.8 MB, free: 20.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.6872, allocations: 62.12 kB / 376.9 MB, free: 20.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.6872, allocations: 3.875 kB / 376.9 MB, free: 20.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006078/0.6878, allocations: 230.2 kB / 377.1 MB, free: 20.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.6879, allocations: 11.67 kB / 377.1 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.6879, allocations: 0 / 377.1 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003793/0.6883, allocations: 56.48 kB / 377.1 MB, free: 20.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004198/0.6887, allocations: 49.12 kB / 377.2 MB, free: 20.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.6906, allocations: 1.377 MB / 378.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.691, allocations: 31.83 kB / 378.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/0.6911, allocations: 3.875 kB / 378.6 MB, free: 18.73 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.000218/0.6913, allocations: 131.6 kB / 378.7 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007286/0.692, allocations: 206 kB / 378.9 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.652e-05/0.6921, allocations: 19.44 kB / 379 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.537e-05/0.6922, allocations: 23.78 kB / 379 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6922, allocations: 3.875 kB / 379 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.6922, allocations: 0 / 379 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.6922, allocations: 4 kB / 379 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.6927, allocations: 270.8 kB / 379.3 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.6927, allocations: 0 / 379.3 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.6931, allocations: 36.59 kB / 379.3 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000304/0.6934, allocations: 55.86 kB / 379.3 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.6935, allocations: 0 / 379.3 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.695, allocations: 1.275 MB / 380.6 MB, free: 17.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6951, allocations: 0 / 380.6 MB, free: 17.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009522/0.696, allocations: 302.4 kB / 380.9 MB, free: 17.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.6962, allocations: 113.7 kB / 381 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.6963, allocations: 3.375 kB / 381 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.6966, allocations: 18.61 kB / 381 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.6968, allocations: 32.94 kB / 381.1 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.6968, allocations: 7.75 kB / 381.1 MB, free: 16.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001575/0.697, allocations: 133.3 kB / 381.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.697, allocations: 0 / 381.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006154/0.6976, allocations: 84.69 kB / 381.3 MB, free: 16.84 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.001356/0.699, allocations: 0.8542 MB / 382.2 MB, free: 16.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007019/0.6997, allocations: 263 kB / 382.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6998, allocations: 0 / 382.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.7002, allocations: 183.9 kB / 382.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.7006, allocations: 25.73 kB / 382.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.7033, allocations: 0.548 MB / 383.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.7037, allocations: 0.7629 MB / 383.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001821/0.7039, allocations: 19.28 kB / 383.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.7041, allocations: 84.19 kB / 384 MB, free: 15 MB / 314.7 MB Notification: Performance of SimCode: time 9.51e-07/0.7041, allocations: 0 / 384 MB, free: 15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0514/0.7555, allocations: 4.115 MB / 388.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002849/0.7559, allocations: 137.5 kB / 388.3 MB, free: 13.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.143/3.898, allocations: 3.875 kB / 388.3 MB, free: 13.14 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat