Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.756e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3298, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.5292, allocations: 94.11 MB / 358 MB, free: 11.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5296, allocations: 75.95 kB / 358 MB, free: 11.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197/1.726, allocations: 196.5 MB / 0.5415 GB, free: 45.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.736e-06/1.726, allocations: 0 / 0.5415 GB, free: 45.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000237/1.727, allocations: 86.47 kB / 0.5416 GB, free: 45.98 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01497/1.742, allocations: 4.679 MB / 0.5462 GB, free: 43.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/1.742, allocations: 10.75 kB / 0.5462 GB, free: 43.53 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006437/1.742, allocations: 158 kB / 0.5463 GB, free: 43.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/1.744, allocations: 0.7513 MB / 0.5471 GB, free: 43.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/1.759, allocations: 4.502 MB / 0.5515 GB, free: 42.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-05/1.759, allocations: 67.95 kB / 0.5515 GB, free: 42.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/1.759, allocations: 105.9 kB / 0.5516 GB, free: 42.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00307/1.762, allocations: 1.439 MB / 0.553 GB, free: 41.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/1.762, allocations: 0 / 0.553 GB, free: 41.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002235/1.763, allocations: 40.19 kB / 0.5531 GB, free: 41.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.613e-05/1.763, allocations: 41.23 kB / 0.5531 GB, free: 41.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003076/1.766, allocations: 1.35 MB / 0.5544 GB, free: 41.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01708/1.783, allocations: 5.868 MB / 0.5601 GB, free: 39.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/1.785, allocations: 0.8739 MB / 0.561 GB, free: 38.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/1.787, allocations: 1.163 MB / 0.5621 GB, free: 38.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3771/2.164, allocations: 71.89 MB / 0.6323 GB, free: 78.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/2.165, allocations: 0.502 MB / 0.6328 GB, free: 78.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.938e-06/2.165, allocations: 0 / 0.6328 GB, free: 78.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003648/2.169, allocations: 1.46 MB / 0.6343 GB, free: 77.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/2.169, allocations: 482.7 kB / 0.6347 GB, free: 77.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/2.18, allocations: 4.794 MB / 0.6394 GB, free: 76.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002807/2.18, allocations: 45.02 kB / 0.6394 GB, free: 76.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002917/2.183, allocations: 2.359 MB / 0.6418 GB, free: 76.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005402/2.184, allocations: 293.7 kB / 0.642 GB, free: 76.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/2.184, allocations: 32.25 kB / 0.6421 GB, free: 76.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/2.184, allocations: 364.8 kB / 0.6424 GB, free: 75.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009496/2.185, allocations: 348.9 kB / 0.6427 GB, free: 75.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/2.186, allocations: 1.111 MB / 0.6438 GB, free: 74.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/2.188, allocations: 0.5184 MB / 0.6443 GB, free: 74.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.768e-05/2.188, allocations: 8.562 kB / 0.6443 GB, free: 74.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003573/2.191, allocations: 1.43 MB / 0.6457 GB, free: 74.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/2.191, allocations: 15.41 kB / 0.6458 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003046/2.192, allocations: 163.3 kB / 0.6459 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.324e-05/2.192, allocations: 35.94 kB / 0.6459 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/2.194, allocations: 372.8 kB / 0.6463 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-05/2.194, allocations: 49.09 kB / 0.6463 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004026/2.198, allocations: 212.1 kB / 0.6466 GB, free: 74.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004105/2.199, allocations: 121.3 kB / 0.6467 GB, free: 74.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004323/2.199, allocations: 215.8 kB / 0.6469 GB, free: 74.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001522/2.2, allocations: 0.7282 MB / 0.6476 GB, free: 74.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008396/2.209, allocations: 2.136 MB / 0.6497 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/2.209, allocations: 6.375 kB / 0.6497 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/2.209, allocations: 0 / 0.6497 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/2.209, allocations: 6.359 kB / 0.6497 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/2.219, allocations: 3.733 MB / 0.6533 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002663/2.22, allocations: 138.7 kB / 0.6535 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/2.221, allocations: 163 kB / 0.6536 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/2.221, allocations: 4.781 kB / 0.6536 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/2.221, allocations: 60.14 kB / 0.6537 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/2.221, allocations: 3.5 kB / 0.6537 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/2.221, allocations: 6.312 kB / 0.6537 GB, free: 73.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004413/2.226, allocations: 2.102 MB / 0.6557 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002973/2.229, allocations: 0.9338 MB / 0.6567 GB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/2.231, allocations: 16.81 kB / 0.6567 GB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/2.234, allocations: 64.55 kB / 0.6567 GB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/2.234, allocations: 101 kB / 0.6568 GB, free: 72.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001931/2.234, allocations: 72.94 kB / 0.6569 GB, free: 72.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008866/2.243, allocations: 3.639 MB / 0.6604 GB, free: 72.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.303e-06/2.243, allocations: 3.969 kB / 0.6605 GB, free: 72.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004639/2.248, allocations: 1.17 MB / 0.6616 GB, free: 72.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007255/2.255, allocations: 3.87 MB / 0.6654 GB, free: 70.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003125/2.258, allocations: 1.288 MB / 0.6666 GB, free: 70.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/2.259, allocations: 7.297 kB / 0.6666 GB, free: 70.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/2.26, allocations: 0.7158 MB / 0.6673 GB, free: 70.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005894/2.266, allocations: 0.9559 MB / 0.6683 GB, free: 70.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02254/2.288, allocations: 7.084 MB / 0.6752 GB, free: 68.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005216/2.294, allocations: 2.72 MB / 0.6778 GB, free: 67.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006062/2.3, allocations: 2.443 MB / 0.6802 GB, free: 67.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.733e-06/2.3, allocations: 0 / 0.6802 GB, free: 67.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.851/7.151, allocations: 90.53 MB / 0.7686 GB, free: 79.7 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat