Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.718e-05/5.732e-05, allocations: 4 kB / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09671, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5453, allocations: 97.77 MB / 397.7 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.5456, allocations: 72.78 kB / 397.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4349/0.9805, allocations: 125.3 MB / 0.5108 GB, free: 8.477 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.739e-06/0.9806, allocations: 0 / 0.5108 GB, free: 8.477 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.815e-05/0.9807, allocations: 47.94 kB / 0.5109 GB, free: 8.43 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007389/0.9881, allocations: 2.706 MB / 0.5135 GB, free: 5.668 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/0.9882, allocations: 8.031 kB / 0.5135 GB, free: 5.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003171/0.9885, allocations: 102.5 kB / 0.5136 GB, free: 5.551 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.9894, allocations: 395.2 kB / 0.514 GB, free: 5.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006718/0.9961, allocations: 2.375 MB / 0.5163 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.897e-05/0.9962, allocations: 37 kB / 0.5164 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.9965, allocations: 55.89 kB / 0.5164 GB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.9985, allocations: 0.7794 MB / 0.5172 GB, free: 1.809 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.9985, allocations: 4 kB / 0.5172 GB, free: 1.805 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.9987, allocations: 27.92 kB / 0.5172 GB, free: 1.777 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.9987, allocations: 19.98 kB / 0.5172 GB, free: 1.758 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/1.001, allocations: 0.715 MB / 0.5179 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2906/1.291, allocations: 3.179 MB / 0.521 GB, free: 78.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/1.293, allocations: 494 kB / 0.5215 GB, free: 78.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/1.294, allocations: 0.5918 MB / 0.5221 GB, free: 78.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05053/1.345, allocations: 36.18 MB / 0.5574 GB, free: 52.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007069/1.345, allocations: 325.2 kB / 0.5577 GB, free: 52.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.037e-06/1.345, allocations: 0 / 0.5577 GB, free: 52.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001912/1.347, allocations: 0.7984 MB / 0.5585 GB, free: 51.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/1.347, allocations: 274 kB / 0.5588 GB, free: 51.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004901/1.352, allocations: 2.523 MB / 0.5612 GB, free: 51.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/1.353, allocations: 40.7 kB / 0.5613 GB, free: 51.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/1.354, allocations: 1.232 MB / 0.5625 GB, free: 50.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002797/1.354, allocations: 166.2 kB / 0.5626 GB, free: 50.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.948e-05/1.354, allocations: 18.72 kB / 0.5626 GB, free: 50.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/1.354, allocations: 343.8 kB / 0.563 GB, free: 50.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005264/1.355, allocations: 195.3 kB / 0.5631 GB, free: 50.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/1.356, allocations: 0.5918 MB / 0.5637 GB, free: 50.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/1.356, allocations: 280.1 kB / 0.564 GB, free: 50.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/1.356, allocations: 3.781 kB / 0.564 GB, free: 50.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001869/1.358, allocations: 0.8125 MB / 0.5648 GB, free: 49.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/1.358, allocations: 11.72 kB / 0.5648 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/1.358, allocations: 81.48 kB / 0.5649 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.173e-05/1.359, allocations: 19.47 kB / 0.5649 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/1.36, allocations: 215.7 kB / 0.5651 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.383e-05/1.36, allocations: 31.73 kB / 0.5651 GB, free: 49.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/1.362, allocations: 122.6 kB / 0.5653 GB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/1.362, allocations: 67.09 kB / 0.5653 GB, free: 49.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002728/1.363, allocations: 177.2 kB / 0.5655 GB, free: 49.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006735/1.363, allocations: 385.9 kB / 0.5659 GB, free: 49.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/1.368, allocations: 1.145 MB / 0.567 GB, free: 49.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/1.368, allocations: 7.156 kB / 0.567 GB, free: 49.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/1.368, allocations: 0 / 0.567 GB, free: 49.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/1.368, allocations: 7.234 kB / 0.567 GB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/1.373, allocations: 2.117 MB / 0.5691 GB, free: 49.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001446/1.373, allocations: 72.09 kB / 0.5691 GB, free: 49.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009333/1.374, allocations: 104.2 kB / 0.5692 GB, free: 49.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/1.374, allocations: 3.938 kB / 0.5692 GB, free: 49.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-05/1.374, allocations: 38.3 kB / 0.5693 GB, free: 49.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/1.374, allocations: 7.203 kB / 0.5693 GB, free: 49.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.374, allocations: 2.5 kB / 0.5693 GB, free: 49.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/1.377, allocations: 1.215 MB / 0.5705 GB, free: 48.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/1.378, allocations: 0.5494 MB / 0.571 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005268/1.379, allocations: 11.44 kB / 0.571 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/1.38, allocations: 44.34 kB / 0.571 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/1.38, allocations: 65.62 kB / 0.5711 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/1.381, allocations: 38.19 kB / 0.5711 GB, free: 48.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004035/1.385, allocations: 1.915 MB / 0.573 GB, free: 48.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.385, allocations: 0 / 0.573 GB, free: 48.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002507/1.387, allocations: 0.649 MB / 0.5736 GB, free: 48.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004191/1.391, allocations: 2.625 MB / 0.5762 GB, free: 47.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/1.393, allocations: 0.7138 MB / 0.5769 GB, free: 46.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/1.393, allocations: 0 / 0.5769 GB, free: 46.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/1.394, allocations: 393.1 kB / 0.5773 GB, free: 46.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/1.397, allocations: 0.4946 MB / 0.5778 GB, free: 46.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/1.407, allocations: 3.716 MB / 0.5814 GB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/1.408, allocations: 1.73 MB / 0.5831 GB, free: 44.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/1.41, allocations: 1.216 MB / 0.5843 GB, free: 44.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/1.41, allocations: 3.391 kB / 0.5843 GB, free: 44.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.573/4.983, allocations: 48.52 MB / 0.6317 GB, free: 26.32 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat