Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.443/2.443, allocations: 249.5 MB / 261.6 MB, free: 2.172 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.569e-05, allocations: 8 kB / 323.5 MB, free: 4.234 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4076, allocations: 58.83 MB / 382.3 MB, free: 10.25 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.6243, allocations: 113.1 MB / 495.4 MB, free: 11.25 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.6247, allocations: 79.95 kB / 495.5 MB, free: 11.18 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.668/3.293, allocations: 468.9 MB / 0.9418 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.256e-06/3.293, allocations: 0 / 0.9418 GB, free: 59.82 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001182/3.294, allocations: 302.9 kB / 0.9421 GB, free: 59.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.0725/3.366, allocations: 13.52 MB / 0.9553 GB, free: 56.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/3.367, allocations: 11.5 kB / 0.9553 GB, free: 56.16 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01104/3.378, allocations: 2.01 MB / 0.9572 GB, free: 56.03 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06734/3.445, allocations: 8.526 MB / 0.9656 GB, free: 55.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0293/3.474, allocations: 8.827 MB / 0.9742 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001944/3.476, allocations: 1.036 MB / 0.9752 GB, free: 54.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007481/3.484, allocations: 1.306 MB / 0.9765 GB, free: 54.08 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08374/3.568, allocations: 24.45 MB / 1 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008511/3.569, allocations: 17.94 kB / 1 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007179/3.576, allocations: 0.5662 MB / 1.001 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001826/3.578, allocations: 0.9328 MB / 1.002 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06566/3.643, allocations: 21.88 MB / 1.023 GB, free: 51.08 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.219/3.862, allocations: 76.39 MB / 1.098 GB, free: 1.086 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1091/3.972, allocations: 23.43 MB / 1.121 GB, free: 4.707 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.5509/4.523, allocations: 12.11 MB / 1.133 GB, free: 72.07 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1305/4.653, allocations: 37.24 MB / 1.169 GB, free: 70.62 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/4.653, allocations: 135 kB / 1.169 GB, free: 70.57 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=1188): time 1.855e-05/4.653, allocations: 0 / 1.169 GB, free: 70.57 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1188): time 0.06254/4.716, allocations: 22.19 MB / 1.191 GB, free: 70.11 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/4.716, allocations: 174 kB / 1.191 GB, free: 70.01 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009557/4.726, allocations: 3.064 MB / 1.194 GB, free: 69.75 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.003104/4.729, allocations: 177.4 kB / 1.194 GB, free: 69.71 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.004649/4.733, allocations: 4.474 MB / 1.198 GB, free: 67.84 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0081/4.742, allocations: 3.867 MB / 1.202 GB, free: 64.82 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001887/4.744, allocations: 174.3 kB / 1.202 GB, free: 64.69 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.001362/4.745, allocations: 0.7523 MB / 1.203 GB, free: 64.19 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0571/4.802, allocations: 7.91 MB / 1.211 GB, free: 61.1 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03168/4.834, allocations: 9.347 MB / 1.22 GB, free: 56.58 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03242/4.866, allocations: 9.253 MB / 1.229 GB, free: 52.98 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.381e-05/4.866, allocations: 10.03 kB / 1.229 GB, free: 52.98 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.06924/4.936, allocations: 23.48 MB / 1.252 GB, free: 43.83 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 6.091e-05/4.936, allocations: 23.78 kB / 1.252 GB, free: 43.83 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/4.936, allocations: 31.72 kB / 1.252 GB, free: 43.83 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03444/4.97, allocations: 10.27 MB / 1.262 GB, free: 40.81 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01153/4.982, allocations: 1.35 MB / 1.263 GB, free: 40.51 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04212/5.024, allocations: 19.46 MB / 1.282 GB, free: 23.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01143/5.036, allocations: 1.113 MB / 1.283 GB, free: 22.44 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00365/5.039, allocations: 394.7 kB / 1.284 GB, free: 22.09 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of prepare postOptimizeDAE: time 0.006255/5.046, allocations: 0.5536 MB / 1.284 GB, free: 21.62 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004148/5.05, allocations: 0.6016 MB / 1.285 GB, free: 21.01 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1002/5.15, allocations: 24.34 MB / 1.309 GB, free: 460 kB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007995/5.151, allocations: 322.4 kB / 1.309 GB, free: 180 kB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.822e-05/5.151, allocations: 0 / 1.309 GB, free: 180 kB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002643/5.151, allocations: 49.08 kB / 1.309 GB, free: 180 kB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6296/5.781, allocations: 44.99 MB / 1.353 GB, free: 95.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001886/5.781, allocations: 2.688 kB / 1.353 GB, free: 95.27 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01014/5.791, allocations: 1.085 MB / 1.354 GB, free: 95.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03554/5.827, allocations: 10.23 MB / 1.364 GB, free: 94.91 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003403/5.83, allocations: 243.8 kB / 1.364 GB, free: 94.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04756/5.878, allocations: 19.39 MB / 1.383 GB, free: 92.67 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/5.878, allocations: 6.016 kB / 1.383 GB, free: 92.67 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09958/5.978, allocations: 35.83 MB / 1.418 GB, free: 91.99 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01059/5.988, allocations: 2.686 MB / 1.421 GB, free: 91.57 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004562/5.993, allocations: 157.3 kB / 1.421 GB, free: 91.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01084/6.004, allocations: 0.5424 MB / 1.421 GB, free: 91.57 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004889/6.009, allocations: 0.8901 MB / 1.422 GB, free: 91.56 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003421/6.012, allocations: 306.8 kB / 1.423 GB, free: 91.56 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006063/6.018, allocations: 2.337 MB / 1.425 GB, free: 91.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.843e-06/6.018, allocations: 0 / 1.425 GB, free: 91.4 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01755/6.036, allocations: 3.468 MB / 1.428 GB, free: 91.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of Backend phase and start with SimCode phase: time 0.1103/6.146, allocations: 36.75 MB / 1.464 GB, free: 76.81 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.05776/6.204, allocations: 19.69 MB / 1.483 GB, free: 66.56 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/6.204, allocations: 0 / 1.483 GB, free: 66.56 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.03609/6.24, allocations: 10.9 MB / 1.494 GB, free: 57.13 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/6.253, allocations: 1.168 MB / 1.495 GB, free: 56.25 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09872/6.352, allocations: 32.87 MB / 1.527 GB, free: 28.06 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02352/6.375, allocations: 9.712 MB / 1.537 GB, free: 20.84 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0131/6.388, allocations: 2.109 MB / 1.539 GB, free: 19.36 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01326/6.402, allocations: 4.776 MB / 1.544 GB, free: 14.92 MB / 0.573 GB Notification: Performance of SimCode: time 2.044e-06/6.402, allocations: 0 / 1.544 GB, free: 14.92 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.498/7.9, allocations: 282 MB / 1.819 GB, free: 84.82 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002448/7.9, allocations: 192 kB / 1.819 GB, free: 84.59 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/18.01, allocations: 0 / 1.819 GB, free: 84.59 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat does not exist to compare? outputFormat=mat