Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.648e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2612, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.4257, allocations: 93.95 MB / 357.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.426, allocations: 71.97 kB / 357.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6618/1.088, allocations: 127.4 MB / 485.2 MB, free: 3.242 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.285e-06/1.088, allocations: 0 / 485.2 MB, free: 3.242 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.043e-05/1.088, allocations: 51.94 kB / 485.3 MB, free: 3.191 MB / 330.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.006789/1.095, allocations: 2.709 MB / 488 MB, free: 432 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/1.095, allocations: 12.03 kB / 488 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002176/1.095, allocations: 94.5 kB / 488.1 MB, free: 316 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007801/1.096, allocations: 399.3 kB / 488.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006306/1.102, allocations: 2.364 MB / 490.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/1.102, allocations: 36.78 kB / 490.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/1.103, allocations: 60 kB / 491 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/1.104, allocations: 0.7793 MB / 491.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/1.105, allocations: 0 / 491.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/1.105, allocations: 28 kB / 491.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/1.105, allocations: 19.98 kB / 491.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/1.107, allocations: 0.7111 MB / 492.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009124/1.116, allocations: 3.2 MB / 495.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/1.117, allocations: 493.9 kB / 496.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/1.118, allocations: 0.5928 MB / 496.8 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3088/1.427, allocations: 36.16 MB / 0.5204 GB, free: 38.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007096/1.428, allocations: 317 kB / 0.5207 GB, free: 38.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.098e-06/1.428, allocations: 0 / 0.5207 GB, free: 38.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001893/1.43, allocations: 0.8057 MB / 0.5215 GB, free: 37.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/1.43, allocations: 268.7 kB / 0.5218 GB, free: 37.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004545/1.434, allocations: 2.517 MB / 0.5242 GB, free: 37.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/1.435, allocations: 35.8 kB / 0.5243 GB, free: 37.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/1.436, allocations: 1.231 MB / 0.5255 GB, free: 36.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/1.436, allocations: 176.6 kB / 0.5257 GB, free: 36.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/1.436, allocations: 15.66 kB / 0.5257 GB, free: 36.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.668e-05/1.436, allocations: 351.5 kB / 0.526 GB, free: 36.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005106/1.437, allocations: 193.5 kB / 0.5262 GB, free: 36.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007139/1.438, allocations: 0.5886 MB / 0.5268 GB, free: 36.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006448/1.438, allocations: 286.7 kB / 0.527 GB, free: 36.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/1.438, allocations: 6.219 kB / 0.527 GB, free: 36.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001845/1.44, allocations: 0.8053 MB / 0.5278 GB, free: 36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/1.44, allocations: 9.625 kB / 0.5278 GB, free: 36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/1.44, allocations: 91.19 kB / 0.5279 GB, free: 36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.503e-05/1.44, allocations: 19.81 kB / 0.5279 GB, free: 36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/1.442, allocations: 213.6 kB / 0.5281 GB, free: 36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.997e-05/1.442, allocations: 31.69 kB / 0.5282 GB, free: 36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/1.444, allocations: 123.9 kB / 0.5283 GB, free: 35.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/1.444, allocations: 70.19 kB / 0.5284 GB, free: 35.97 MB / 346.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.0002464/1.444, allocations: 163.5 kB / 0.5285 GB, free: 35.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005162/1.445, allocations: 387.6 kB / 0.5289 GB, free: 35.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004216/1.449, allocations: 1.143 MB / 0.53 GB, free: 35.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/1.449, allocations: 3.875 kB / 0.53 GB, free: 35.58 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.449, allocations: 3.938 kB / 0.53 GB, free: 35.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/1.449, allocations: 7.172 kB / 0.53 GB, free: 35.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/1.454, allocations: 2.116 MB / 0.5321 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000141/1.454, allocations: 69.41 kB / 0.5322 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009073/1.455, allocations: 101.2 kB / 0.5322 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/1.455, allocations: 7.781 kB / 0.5323 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.124e-05/1.455, allocations: 30.16 kB / 0.5323 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.455, allocations: 2.344 kB / 0.5323 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.455, allocations: 0 / 0.5323 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/1.457, allocations: 1.222 MB / 0.5335 GB, free: 34.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/1.458, allocations: 0.5468 MB / 0.534 GB, free: 34.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005508/1.459, allocations: 11.34 kB / 0.534 GB, free: 34.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/1.46, allocations: 49.84 kB / 0.5341 GB, free: 34.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/1.461, allocations: 64.11 kB / 0.5341 GB, free: 34.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.461, allocations: 41.55 kB / 0.5342 GB, free: 34.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003699/1.464, allocations: 1.914 MB / 0.536 GB, free: 34.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.465, allocations: 0 / 0.536 GB, free: 34.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002354/1.467, allocations: 0.6478 MB / 0.5367 GB, free: 34.18 MB / 346.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.004057/1.471, allocations: 2.631 MB / 0.5392 GB, free: 33.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/1.473, allocations: 0.7109 MB / 0.5399 GB, free: 32.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.473, allocations: 0 / 0.5399 GB, free: 32.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007035/1.473, allocations: 394.4 kB / 0.5403 GB, free: 32.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/1.476, allocations: 0.4956 MB / 0.5408 GB, free: 32.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009316/1.486, allocations: 3.717 MB / 0.5444 GB, free: 31.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/1.487, allocations: 1.732 MB / 0.5461 GB, free: 31.01 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/1.489, allocations: 1.215 MB / 0.5473 GB, free: 31.01 MB / 346.7 MB Notification: Performance of SimCode: time 2.445e-06/1.489, allocations: 0 / 0.5473 GB, free: 31.01 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.522/5.01, allocations: 48.51 MB / 0.5947 GB, free: 1.922 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat