Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.2 MB / 178.1 MB, free: 8.273 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2502/2.02, allocations: 41.1 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/2.113, allocations: 38.76 MB / 258 MB, free: 4.348 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/2.435, allocations: 67.94 MB / 326 MB, free: 4.109 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003732/2.435, allocations: 69.59 kB / 326 MB, free: 4.074 MB / 266.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.04058/2.476, allocations: 5.568 MB / 331.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.05e-05/2.476, allocations: 12 kB / 331.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/2.476, allocations: 39.61 kB / 331.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000752/2.477, allocations: 249.2 kB / 331.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/2.477, allocations: 64.06 kB / 331.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/2.477, allocations: 16 kB / 332 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006218/2.478, allocations: 166.7 kB / 332.1 MB, free: 14.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/2.479, allocations: 249 kB / 332.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/2.479, allocations: 224 / 332.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.616e-05/2.479, allocations: 0 / 332.4 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/2.479, allocations: 15.94 kB / 332.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/2.482, allocations: 1.08 MB / 333.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/2.482, allocations: 88.58 kB / 333.5 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/2.483, allocations: 71.77 kB / 333.6 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/2.483, allocations: 0 / 333.6 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003132/2.483, allocations: 144.8 kB / 333.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/2.483, allocations: 0 / 333.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009872/2.484, allocations: 208.8 kB / 334 MB, free: 13.19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/2.484, allocations: 106.8 kB / 334.1 MB, free: 13.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/2.484, allocations: 164.7 kB / 334.2 MB, free: 12.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/2.484, allocations: 29.7 kB / 334.3 MB, free: 12.88 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/2.485, allocations: 165.2 kB / 334.4 MB, free: 12.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.17e-05/2.485, allocations: 62.84 kB / 334.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/2.485, allocations: 0 / 334.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/2.485, allocations: 336.3 kB / 334.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/2.485, allocations: 56.12 kB / 334.9 MB, free: 12.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/2.485, allocations: 116.7 kB / 335 MB, free: 12.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/2.486, allocations: 64.5 kB / 335 MB, free: 12.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/2.486, allocations: 3.906 kB / 335 MB, free: 12.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008811/2.486, allocations: 221.9 kB / 335.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/2.487, allocations: 8 kB / 335.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/2.487, allocations: 0 / 335.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/2.487, allocations: 60.28 kB / 335.3 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/2.488, allocations: 43.42 kB / 335.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/2.49, allocations: 1.271 MB / 336.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004683/2.49, allocations: 35.95 kB / 336.7 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/2.49, allocations: 14.84 kB / 336.7 MB, free: 10.48 MB / 282.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.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * 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.0002129/2.49, allocations: 112.9 kB / 336.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/2.49, allocations: 19.81 kB / 336.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.697e-05/2.491, allocations: 22.38 kB / 336.8 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/2.491, allocations: 11.94 kB / 336.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/2.491, allocations: 3.906 kB / 336.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/2.491, allocations: 3.984 kB / 336.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005052/2.491, allocations: 264.7 kB / 337.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/2.491, allocations: 0 / 337.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/2.491, allocations: 35.92 kB / 337.2 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003404/2.492, allocations: 55.94 kB / 337.2 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/2.492, allocations: 0 / 337.2 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/2.494, allocations: 1.245 MB / 338.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/2.494, allocations: 3.906 kB / 338.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001063/2.495, allocations: 311.3 kB / 338.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001513/2.496, allocations: 0.7385 MB / 339.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/2.497, allocations: 108.3 kB / 339.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/2.497, allocations: 4 kB / 339.6 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/2.497, allocations: 24.05 kB / 339.6 MB, free: 7.586 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/2.497, allocations: 27.2 kB / 339.7 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/2.497, allocations: 11.8 kB / 339.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001629/2.497, allocations: 126.3 kB / 339.8 MB, free: 7.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001488/2.499, allocations: 83.69 kB / 339.9 MB, free: 7.367 MB / 282.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.tSwitch,switch2.quenched) * 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.0002073/2.499, allocations: 107.2 kB / 340 MB, free: 7.254 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007398/2.5, allocations: 251.1 kB / 340.2 MB, free: 7.047 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/2.5, allocations: 0 / 340.2 MB, free: 7.047 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003929/2.5, allocations: 175.1 kB / 340.4 MB, free: 6.887 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/2.501, allocations: 30.81 kB / 340.4 MB, free: 6.863 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/2.504, allocations: 494.9 kB / 340.9 MB, free: 6.387 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005299/2.504, allocations: 0.7934 MB / 341.7 MB, free: 5.574 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/2.504, allocations: 3.938 kB / 341.7 MB, free: 5.57 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat