Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.493/2.493, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.672e-05/3.675e-05, allocations: 4 kB / 299.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3781, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.605, allocations: 94.13 MB / 448.5 MB, free: 4.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005073/0.6056, allocations: 79.95 kB / 448.5 MB, free: 3.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1605/0.766, allocations: 38.18 MB / 486.7 MB, free: 13.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7661, allocations: 4 kB / 486.7 MB, free: 13.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.71e-05/0.7662, allocations: 20 kB / 486.8 MB, free: 13.34 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.008536/0.7748, allocations: 1.667 MB / 488.4 MB, free: 11.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.7748, allocations: 16.02 kB / 488.4 MB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01091/0.7857, allocations: 1.052 MB / 489.5 MB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.7874, allocations: 0.5728 MB / 490.1 MB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.181e-05/0.7876, allocations: 44 kB / 490.1 MB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003007/0.7879, allocations: 76 kB / 490.2 MB, free: 9.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00406/0.7919, allocations: 1.419 MB / 491.6 MB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00332/0.7953, allocations: 1.201 MB / 492.8 MB, free: 7.152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.647e-05/0.7954, allocations: 0 / 492.8 MB, free: 7.152 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.7956, allocations: 11.89 kB / 492.8 MB, free: 7.141 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.334e-05/0.7956, allocations: 40 kB / 492.8 MB, free: 7.102 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01293/0.8086, allocations: 5.236 MB / 498.1 MB, free: 1.625 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3036/1.112, allocations: 2.287 MB / 0.4886 GB, free: 101.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/1.114, allocations: 0.5892 MB / 0.4892 GB, free: 101.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003203/1.115, allocations: 107.8 kB / 0.4893 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/1.115, allocations: 51.69 kB / 0.4894 GB, free: 101.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 4.678e-06/1.115, allocations: 0 / 0.4894 GB, free: 101.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.004928/1.12, allocations: 1.319 MB / 0.4907 GB, free: 101.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/1.12, allocations: 94.2 kB / 0.4907 GB, free: 101 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005367/1.12, allocations: 327.9 kB / 0.4911 GB, free: 100.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/1.12, allocations: 27.05 kB / 0.4911 GB, free: 100.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/1.121, allocations: 470.5 kB / 0.4915 GB, free: 100.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004782/1.121, allocations: 408.1 kB / 0.4919 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-05/1.121, allocations: 0 / 0.4919 GB, free: 100.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/1.121, allocations: 379.3 kB / 0.4923 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/1.123, allocations: 399.4 kB / 0.4927 GB, free: 100.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/1.124, allocations: 0.6407 MB / 0.4933 GB, free: 99.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/1.127, allocations: 0.6469 MB / 0.4939 GB, free: 99.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/1.127, allocations: 2.188 kB / 0.4939 GB, free: 99.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005549/1.132, allocations: 1.593 MB / 0.4955 GB, free: 99.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/1.132, allocations: 8.031 kB / 0.4955 GB, free: 99.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.519e-05/1.132, allocations: 12.3 kB / 0.4955 GB, free: 99.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002473/1.135, allocations: 0.4922 MB / 0.496 GB, free: 99.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/1.137, allocations: 207.8 kB / 0.4962 GB, free: 99.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00971/1.146, allocations: 4.144 MB / 0.5002 GB, free: 98.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/1.148, allocations: 101.1 kB / 0.5003 GB, free: 98.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/1.148, allocations: 49.31 kB / 0.5004 GB, free: 98.27 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0005013/1.149, allocations: 183.2 kB / 0.5005 GB, free: 98.15 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004364/1.153, allocations: 1.316 MB / 0.5018 GB, free: 98.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003187/1.153, allocations: 80.09 kB / 0.5019 GB, free: 98.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/1.158, allocations: 1.537 MB / 0.5034 GB, free: 97.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/1.158, allocations: 13.09 kB / 0.5034 GB, free: 97.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/1.158, allocations: 0 / 0.5034 GB, free: 97.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/1.158, allocations: 7.688 kB / 0.5034 GB, free: 97.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006996/1.165, allocations: 2.713 MB / 0.5061 GB, free: 97.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/1.165, allocations: 0 / 0.5061 GB, free: 97.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/1.166, allocations: 150.4 kB / 0.5062 GB, free: 97.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/1.169, allocations: 498.2 kB / 0.5067 GB, free: 97.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/1.169, allocations: 5.25 kB / 0.5067 GB, free: 97.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009209/1.178, allocations: 4.141 MB / 0.5107 GB, free: 95.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.178, allocations: 0 / 0.5107 GB, free: 95.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005768/1.184, allocations: 2.252 MB / 0.5129 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000605/1.185, allocations: 276 kB / 0.5132 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/1.185, allocations: 7.562 kB / 0.5132 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/1.186, allocations: 37.27 kB / 0.5132 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003476/1.186, allocations: 99.14 kB / 0.5133 GB, free: 94.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.186, allocations: 39.02 kB / 0.5134 GB, free: 94.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003252/1.187, allocations: 237 kB / 0.5136 GB, free: 94.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.964e-06/1.187, allocations: 0 / 0.5136 GB, free: 94.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001708/1.189, allocations: 377.2 kB / 0.514 GB, free: 94.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.00601/1.195, allocations: 2.968 MB / 0.5169 GB, free: 92.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004229/1.199, allocations: 1.592 MB / 0.5184 GB, free: 91.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/1.199, allocations: 320 / 0.5184 GB, free: 91.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002749/1.202, allocations: 1.056 MB / 0.5194 GB, free: 91.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007696/1.202, allocations: 50.98 kB / 0.5195 GB, free: 91.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007033/1.209, allocations: 2.091 MB / 0.5215 GB, free: 90.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006907/1.21, allocations: 1.096 MB / 0.5226 GB, free: 89.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008884/1.211, allocations: 107.8 kB / 0.5227 GB, free: 89.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007054/1.212, allocations: 387.3 kB / 0.5231 GB, free: 89.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.212, allocations: 0 / 0.5231 GB, free: 89.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07552/1.287, allocations: 21.79 MB / 0.5444 GB, free: 80.05 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/1.288, allocations: 154.3 kB / 0.5445 GB, free: 79.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.246/4.534, allocations: 4.156 kB / 0.5445 GB, free: 79.85 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat