Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.937e-05/3.946e-05, allocations: 0 / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2106/0.6175, allocations: 100.5 MB / 460.3 MB, free: 12.37 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.6179, allocations: 79.95 kB / 460.4 MB, free: 12.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.101/2.718, allocations: 388.4 MB / 0.8289 GB, free: 58.87 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.414e-06/2.718, allocations: 0 / 0.8289 GB, free: 58.87 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009102/2.719, allocations: 246.8 kB / 0.8292 GB, free: 58.84 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3353 * Number of variables: 3353 Notification: Performance of Generate backend data structure: time 0.05234/2.772, allocations: 10.47 MB / 0.8394 GB, free: 48.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/2.772, allocations: 16.03 kB / 0.8394 GB, free: 48.64 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008551/2.78, allocations: 1.712 MB / 0.8411 GB, free: 46.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06726/2.848, allocations: 8.37 MB / 0.8493 GB, free: 38.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02359/2.871, allocations: 7.246 MB / 0.8563 GB, free: 31.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001631/2.873, allocations: 0.8625 MB / 0.8572 GB, free: 30.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006243/2.879, allocations: 1.113 MB / 0.8583 GB, free: 29.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07074/2.95, allocations: 20.75 MB / 0.8785 GB, free: 8.332 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000747/2.951, allocations: 19.38 kB / 0.8786 GB, free: 8.316 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005907/2.957, allocations: 489.8 kB / 0.879 GB, free: 7.852 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001754/2.959, allocations: 0.8441 MB / 0.8798 GB, free: 7.004 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4639/3.423, allocations: 19.39 MB / 0.8988 GB, free: 55.72 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1771/3.6, allocations: 59.83 MB / 0.9572 GB, free: 48.33 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0433/3.643, allocations: 23.81 MB / 0.9805 GB, free: 32.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02539/3.669, allocations: 10.12 MB / 0.9903 GB, free: 28.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001863/3.671, allocations: 367.1 kB / 0.9907 GB, free: 28.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/3.671, allocations: 137.9 kB / 0.9908 GB, free: 28 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1196): time 1.852e-05/3.671, allocations: 0 / 0.9908 GB, free: 28 MB / 490.7 MB Notification: Performance of matching and sorting (n=1196): time 0.05214/3.723, allocations: 17.88 MB / 1.008 GB, free: 21.04 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/3.723, allocations: 156 kB / 1.008 GB, free: 20.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007093/3.73, allocations: 2.632 MB / 1.011 GB, free: 20.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003097/3.733, allocations: 186.9 kB / 1.011 GB, free: 19.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002578/3.736, allocations: 3.26 MB / 1.014 GB, free: 17.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006916/3.743, allocations: 3.9 MB / 1.018 GB, free: 14.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003019/3.746, allocations: 172.1 kB / 1.018 GB, free: 14.35 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001479/3.748, allocations: 0.726 MB / 1.019 GB, free: 13.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01944/3.767, allocations: 7.007 MB / 1.026 GB, free: 9.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0211/3.788, allocations: 7.871 MB / 1.034 GB, free: 2.223 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04774/3.836, allocations: 9.673 MB / 1.043 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.331e-05/3.836, allocations: 5.188 kB / 1.043 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.0668/3.903, allocations: 18.45 MB / 1.061 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.468e-05/3.903, allocations: 8 kB / 1.061 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/3.903, allocations: 14.72 kB / 1.061 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/3.915, allocations: 3.73 MB / 1.065 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01748/3.933, allocations: 1.91 MB / 1.067 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4462/4.379, allocations: 21.51 MB / 1.088 GB, free: 78.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01101/4.39, allocations: 1.121 MB / 1.089 GB, free: 78.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00341/4.394, allocations: 334.8 kB / 1.089 GB, free: 78.98 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 818 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.006128/4.4, allocations: 0.541 MB / 1.09 GB, free: 78.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004219/4.404, allocations: 0.5541 MB / 1.09 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1243/4.528, allocations: 20.23 MB / 1.11 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000678/4.529, allocations: 292.3 kB / 1.11 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.517e-05/4.529, allocations: 4.688 kB / 1.11 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002985/4.529, allocations: 54.28 kB / 1.11 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1384/4.668, allocations: 38.5 MB / 1.148 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001557/4.668, allocations: 0 / 1.148 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02123/4.689, allocations: 1.774 MB / 1.149 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01559/4.705, allocations: 3.705 MB / 1.153 GB, free: 75.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003834/4.709, allocations: 248.1 kB / 1.153 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0394/4.748, allocations: 21.4 MB / 1.174 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/4.748, allocations: 1.5 kB / 1.174 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1293/4.878, allocations: 30.14 MB / 1.204 GB, free: 46.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002093/4.88, allocations: 0.8447 MB / 1.205 GB, free: 45.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003924/4.884, allocations: 169.4 kB / 1.205 GB, free: 45.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0124/4.896, allocations: 0.5943 MB / 1.205 GB, free: 45.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005299/4.902, allocations: 0.8441 MB / 1.206 GB, free: 45.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00336/4.905, allocations: 321.5 kB / 1.206 GB, free: 45 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005125/4.91, allocations: 2.04 MB / 1.208 GB, free: 43.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.62e-07/4.91, allocations: 0 / 1.208 GB, free: 43.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01495/4.925, allocations: 3.078 MB / 1.211 GB, free: 40.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (921): * Single equations (assignments): 806 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.07884/5.004, allocations: 31.02 MB / 1.242 GB, free: 13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04973/5.054, allocations: 17.7 MB / 1.259 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/5.054, allocations: 0 / 1.259 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02916/5.083, allocations: 9.631 MB / 1.268 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/5.094, allocations: 0.9859 MB / 1.269 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5622/5.657, allocations: 29.1 MB / 1.298 GB, free: 100 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01844/5.675, allocations: 7.957 MB / 1.306 GB, free: 99.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01298/5.688, allocations: 4.137 MB / 1.31 GB, free: 99.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.633e-06/5.688, allocations: 0 / 1.31 GB, free: 99.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.39/16.08, allocations: 1.196 GB / 2.506 GB, free: 131.9 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat