Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.343/2.343, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.536e-05/3.546e-05, allocations: 0 / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4327, allocations: 54.85 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3236/0.7563, allocations: 106.4 MB / 466.3 MB, free: 6.379 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004847/0.7569, allocations: 83.95 kB / 466.4 MB, free: 6.297 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.6/3.357, allocations: 470.2 MB / 0.9146 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.585e-06/3.357, allocations: 0 / 0.9146 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001236/3.358, allocations: 299.8 kB / 0.9149 GB, free: 51.79 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3915 * Number of variables: 3915 Notification: Performance of Generate backend data structure: time 0.07337/3.432, allocations: 13.44 MB / 0.928 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/3.432, allocations: 11.34 kB / 0.928 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01103/3.443, allocations: 2.004 MB / 0.93 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0679/3.511, allocations: 8.509 MB / 0.9383 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03754/3.549, allocations: 8.559 MB / 0.9466 GB, free: 46.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002325/3.551, allocations: 1.026 MB / 0.9476 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008772/3.56, allocations: 1.306 MB / 0.9489 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08606/3.646, allocations: 24.4 MB / 0.9727 GB, free: 44.56 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006836/3.647, allocations: 17.16 kB / 0.9728 GB, free: 44.56 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006293/3.653, allocations: 0.5701 MB / 0.9733 GB, free: 44.55 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001418/3.654, allocations: 0.9214 MB / 0.9742 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06321/3.718, allocations: 21.85 MB / 0.9956 GB, free: 41.69 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2486/3.966, allocations: 75.53 MB / 1.069 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4607/4.427, allocations: 21.14 MB / 1.09 GB, free: 56.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04168/4.469, allocations: 11.49 MB / 1.101 GB, free: 56.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1273/4.596, allocations: 37.23 MB / 1.138 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/4.596, allocations: 146.6 kB / 1.138 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1188): time 2.558e-05/4.596, allocations: 0 / 1.138 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1188): time 0.07198/4.668, allocations: 22.17 MB / 1.159 GB, free: 50.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/4.669, allocations: 178.5 kB / 1.16 GB, free: 50.66 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007498/4.676, allocations: 2.914 MB / 1.162 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002858/4.679, allocations: 176.5 kB / 1.163 GB, free: 49.52 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003347/4.682, allocations: 4.267 MB / 1.167 GB, free: 46.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007738/4.69, allocations: 3.866 MB / 1.17 GB, free: 43.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003332/4.694, allocations: 176.3 kB / 1.171 GB, free: 43.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001512/4.695, allocations: 0.7536 MB / 1.171 GB, free: 43.21 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02067/4.716, allocations: 7.905 MB / 1.179 GB, free: 40.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02315/4.739, allocations: 9.351 MB / 1.188 GB, free: 35.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02492/4.764, allocations: 9.247 MB / 1.197 GB, free: 32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.012e-05/4.764, allocations: 12.69 kB / 1.197 GB, free: 32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.07144/4.836, allocations: 23.29 MB / 1.22 GB, free: 22.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/4.836, allocations: 24.28 kB / 1.22 GB, free: 22.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/4.836, allocations: 32 kB / 1.22 GB, free: 22.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03257/4.868, allocations: 10.26 MB / 1.23 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0113/4.88, allocations: 1.348 MB / 1.231 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04665/4.926, allocations: 19.54 MB / 1.25 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01177/4.938, allocations: 1.119 MB / 1.252 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003428/4.942, allocations: 391.7 kB / 1.252 GB, free: 10.86 MB / 0.5261 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.005908/4.948, allocations: 0.5465 MB / 1.252 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004363/4.952, allocations: 0.5901 MB / 1.253 GB, free: 9.793 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5508/5.503, allocations: 26.58 MB / 1.279 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007546/5.504, allocations: 328.2 kB / 1.279 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.313e-05/5.504, allocations: 0 / 1.279 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002531/5.504, allocations: 47.72 kB / 1.279 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1332/5.637, allocations: 43.29 MB / 1.322 GB, free: 73.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001876/5.638, allocations: 3.062 kB / 1.322 GB, free: 73.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01001/5.648, allocations: 1.085 MB / 1.323 GB, free: 73.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0344/5.682, allocations: 10.25 MB / 1.333 GB, free: 73.52 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003809/5.686, allocations: 244.4 kB / 1.333 GB, free: 73.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04612/5.732, allocations: 19.38 MB / 1.352 GB, free: 69.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/5.732, allocations: 1.031 kB / 1.352 GB, free: 69.06 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1029/5.835, allocations: 35.82 MB / 1.387 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01129/5.846, allocations: 2.672 MB / 1.389 GB, free: 53.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0045/5.851, allocations: 158.9 kB / 1.39 GB, free: 52.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01082/5.862, allocations: 0.5302 MB / 1.39 GB, free: 52.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00491/5.867, allocations: 0.8857 MB / 1.391 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003588/5.87, allocations: 306.7 kB / 1.391 GB, free: 52.57 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005999/5.877, allocations: 2.221 MB / 1.393 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.71e-07/5.877, allocations: 0 / 1.393 GB, free: 51.78 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01895/5.896, allocations: 3.472 MB / 1.397 GB, free: 51.13 MB / 0.5261 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.1058/6.001, allocations: 36.74 MB / 1.433 GB, free: 21.83 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05922/6.061, allocations: 19.68 MB / 1.452 GB, free: 4.746 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/6.061, allocations: 4 kB / 1.452 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.05648/6.117, allocations: 11.95 MB / 1.464 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01368/6.131, allocations: 1.152 MB / 1.465 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5614/6.693, allocations: 32.59 MB / 1.497 GB, free: 85.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02615/6.719, allocations: 9.348 MB / 1.506 GB, free: 84.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01456/6.733, allocations: 4.78 MB / 1.51 GB, free: 84.21 MB / 0.5417 GB Notification: Performance of SimCode: time 2.645e-06/6.733, allocations: 2.812 kB / 1.51 GB, free: 84.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.611/13.34, allocations: 0.5264 GB / 2.037 GB, free: 51.36 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat does not exist to compare? outputFormat=mat