Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.237e-05, allocations: 4 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 50.42 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.5908, allocations: 104.4 MB / 447 MB, free: 5.652 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.5912, allocations: 73.53 kB / 447.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7931/1.384, allocations: 138.4 MB / 0.5717 GB, free: 102 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.384, allocations: 0 / 0.5717 GB, free: 102 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.147e-05/1.384, allocations: 41.16 kB / 0.5718 GB, free: 102 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006698/1.391, allocations: 2.583 MB / 0.5743 GB, free: 100.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/1.391, allocations: 10.06 kB / 0.5743 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003284/1.392, allocations: 98.86 kB / 0.5744 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/1.392, allocations: 375.7 kB / 0.5748 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00606/1.398, allocations: 2.221 MB / 0.5769 GB, free: 99.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/1.399, allocations: 37 kB / 0.577 GB, free: 99.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000256/1.399, allocations: 52.52 kB / 0.577 GB, free: 99.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/1.401, allocations: 0.7458 MB / 0.5777 GB, free: 98.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/1.401, allocations: 7.938 kB / 0.5777 GB, free: 98.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/1.401, allocations: 19.81 kB / 0.5778 GB, free: 98.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/1.401, allocations: 21.72 kB / 0.5778 GB, free: 98.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/1.402, allocations: 0.6733 MB / 0.5784 GB, free: 98.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008537/1.411, allocations: 2.927 MB / 0.5813 GB, free: 97.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/1.412, allocations: 0.5909 MB / 0.5819 GB, free: 96.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/1.414, allocations: 0.596 MB / 0.5825 GB, free: 96.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04937/1.463, allocations: 35.96 MB / 0.6176 GB, free: 66.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/1.464, allocations: 318.1 kB / 0.6179 GB, free: 65.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 6.502e-06/1.464, allocations: 0 / 0.6179 GB, free: 65.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.00355/1.468, allocations: 0.8829 MB / 0.6187 GB, free: 64.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/1.468, allocations: 273 kB / 0.619 GB, free: 64.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00692/1.475, allocations: 2.297 MB / 0.6212 GB, free: 62.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002104/1.475, allocations: 37.7 kB / 0.6213 GB, free: 62.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001886/1.477, allocations: 1.146 MB / 0.6224 GB, free: 60.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/1.478, allocations: 167.5 kB / 0.6226 GB, free: 60.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/1.478, allocations: 20 kB / 0.6226 GB, free: 60.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/1.478, allocations: 338.8 kB / 0.6229 GB, free: 60.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007896/1.479, allocations: 182 kB / 0.6231 GB, free: 60.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/1.48, allocations: 0.5783 MB / 0.6236 GB, free: 59.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009967/1.481, allocations: 276.9 kB / 0.6239 GB, free: 59.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/1.481, allocations: 7.938 kB / 0.6239 GB, free: 59.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003187/1.484, allocations: 0.8446 MB / 0.6247 GB, free: 58.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/1.484, allocations: 8 kB / 0.6247 GB, free: 58.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000216/1.484, allocations: 80.86 kB / 0.6248 GB, free: 58.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/1.485, allocations: 278.5 kB / 0.6251 GB, free: 58.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/1.487, allocations: 187.6 kB / 0.6253 GB, free: 57.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/1.489, allocations: 0.8735 MB / 0.6261 GB, free: 56.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003207/1.492, allocations: 119.1 kB / 0.6262 GB, free: 56.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/1.492, allocations: 64 kB / 0.6263 GB, free: 56.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003493/1.493, allocations: 172.5 kB / 0.6265 GB, free: 56.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009667/1.494, allocations: 359.7 kB / 0.6268 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006715/1.501, allocations: 1.216 MB / 0.628 GB, free: 55.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/1.501, allocations: 8 kB / 0.628 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.026e-06/1.501, allocations: 0 / 0.628 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/1.501, allocations: 0 / 0.628 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007254/1.508, allocations: 2.114 MB / 0.6301 GB, free: 52.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001917/1.508, allocations: 71.98 kB / 0.6301 GB, free: 52.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/1.509, allocations: 83.47 kB / 0.6302 GB, free: 52.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/1.51, allocations: 257.7 kB / 0.6305 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/1.51, allocations: 35.98 kB / 0.6305 GB, free: 52.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/1.512, allocations: 0.849 MB / 0.6313 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.512, allocations: 4.031 kB / 0.6313 GB, free: 51.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/1.515, allocations: 1.138 MB / 0.6324 GB, free: 50.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.517, allocations: 476.4 kB / 0.6329 GB, free: 49.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.518, allocations: 19.95 kB / 0.6329 GB, free: 49.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/1.521, allocations: 39.95 kB / 0.6329 GB, free: 49.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003498/1.521, allocations: 71.88 kB / 0.633 GB, free: 49.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/1.521, allocations: 39.98 kB / 0.6331 GB, free: 49.63 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005857/1.527, allocations: 1.748 MB / 0.6348 GB, free: 47.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.527, allocations: 0 / 0.6348 GB, free: 47.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0035/1.531, allocations: 0.6206 MB / 0.6354 GB, free: 47.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004551/1.535, allocations: 2.661 MB / 0.638 GB, free: 44.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002096/1.538, allocations: 0.7258 MB / 0.6387 GB, free: 43.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/1.538, allocations: 0 / 0.6387 GB, free: 43.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/1.539, allocations: 438.8 kB / 0.6391 GB, free: 43.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004664/1.544, allocations: 0.5513 MB / 0.6396 GB, free: 42.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009887/1.554, allocations: 3.29 MB / 0.6428 GB, free: 39.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/1.555, allocations: 1.658 MB / 0.6445 GB, free: 37.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001721/1.557, allocations: 1.124 MB / 0.6456 GB, free: 36.79 MB / 442.7 MB Notification: Performance of SimCode: time 2.364e-06/1.557, allocations: 0 / 0.6456 GB, free: 36.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.799/5.355, allocations: 54.96 MB / 0.6992 GB, free: 108.1 MB / 458.7 MB