Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.499e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2676, allocations: 38.76 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.4329, allocations: 93.83 MB / 357.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4333, allocations: 67.97 kB / 357.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.061, allocations: 125.1 MB / 482.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.504e-06/1.061, allocations: 0 / 482.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.567e-05/1.061, allocations: 44 kB / 482.9 MB, free: 5.754 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007312/1.068, allocations: 2.588 MB / 485.5 MB, free: 3.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.069, allocations: 8.031 kB / 485.5 MB, free: 3.098 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002989/1.069, allocations: 94.52 kB / 485.6 MB, free: 2.996 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008174/1.07, allocations: 379.4 kB / 485.9 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006567/1.076, allocations: 2.228 MB / 488.2 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/1.076, allocations: 40.95 kB / 488.2 MB, free: 288 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/1.077, allocations: 55.89 kB / 488.3 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/1.079, allocations: 0.7559 MB / 489 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/1.079, allocations: 0 / 489 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/1.079, allocations: 27.92 kB / 489 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/1.079, allocations: 23.98 kB / 489.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/1.081, allocations: 0.676 MB / 489.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008993/1.09, allocations: 2.951 MB / 492.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/1.091, allocations: 0.5968 MB / 493.3 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/1.093, allocations: 0.6017 MB / 493.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3371/1.43, allocations: 36.06 MB / 0.5175 GB, free: 41.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006988/1.43, allocations: 309.3 kB / 0.5178 GB, free: 41.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.908e-06/1.43, allocations: 0 / 0.5178 GB, free: 41.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002281/1.433, allocations: 0.8968 MB / 0.5187 GB, free: 41.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/1.433, allocations: 270.4 kB / 0.5189 GB, free: 40.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/1.437, allocations: 2.315 MB / 0.5212 GB, free: 40.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/1.438, allocations: 39.11 kB / 0.5212 GB, free: 40.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/1.439, allocations: 1.148 MB / 0.5224 GB, free: 40.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002408/1.439, allocations: 163 kB / 0.5225 GB, free: 40.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/1.439, allocations: 16.59 kB / 0.5225 GB, free: 40.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/1.439, allocations: 346.7 kB / 0.5229 GB, free: 39.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/1.44, allocations: 184.2 kB / 0.523 GB, free: 39.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007598/1.441, allocations: 0.5872 MB / 0.5236 GB, free: 39.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/1.441, allocations: 273.5 kB / 0.5239 GB, free: 39.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/1.441, allocations: 6.25 kB / 0.5239 GB, free: 39.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00208/1.443, allocations: 0.8738 MB / 0.5247 GB, free: 39.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/1.443, allocations: 9.469 kB / 0.5247 GB, free: 39.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/1.444, allocations: 80.19 kB / 0.5248 GB, free: 39.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008335/1.445, allocations: 278.8 kB / 0.5251 GB, free: 39.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/1.446, allocations: 181 kB / 0.5253 GB, free: 39.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/1.447, allocations: 0.8829 MB / 0.5261 GB, free: 38.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/1.449, allocations: 126 kB / 0.5262 GB, free: 38.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/1.449, allocations: 65.72 kB / 0.5263 GB, free: 38.64 MB / 346.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.0002493/1.449, allocations: 173.9 kB / 0.5265 GB, free: 38.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004169/1.45, allocations: 369 kB / 0.5268 GB, free: 38.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004481/1.454, allocations: 1.211 MB / 0.528 GB, free: 38.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.454, allocations: 7.25 kB / 0.528 GB, free: 38.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.454, allocations: 3.938 kB / 0.528 GB, free: 38.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/1.454, allocations: 7.734 kB / 0.528 GB, free: 38.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004813/1.459, allocations: 2.121 MB / 0.5301 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001381/1.459, allocations: 72.73 kB / 0.5302 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005871/1.46, allocations: 70.64 kB / 0.5302 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007026/1.461, allocations: 259.7 kB / 0.5305 GB, free: 37.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/1.461, allocations: 36.41 kB / 0.5305 GB, free: 37.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/1.462, allocations: 0.8638 MB / 0.5314 GB, free: 37.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.462, allocations: 3.812 kB / 0.5314 GB, free: 37.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/1.464, allocations: 1.14 MB / 0.5325 GB, free: 36.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/1.465, allocations: 475.5 kB / 0.5329 GB, free: 36.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005324/1.466, allocations: 11.06 kB / 0.5329 GB, free: 36.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/1.467, allocations: 48.98 kB / 0.533 GB, free: 36.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/1.468, allocations: 67.94 kB / 0.5331 GB, free: 36.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.468, allocations: 38.61 kB / 0.5331 GB, free: 36.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003502/1.471, allocations: 1.762 MB / 0.5348 GB, free: 36.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.535e-06/1.471, allocations: 0 / 0.5348 GB, free: 36.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002419/1.474, allocations: 0.6398 MB / 0.5354 GB, free: 36.27 MB / 346.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.003865/1.478, allocations: 2.67 MB / 0.538 GB, free: 35.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001873/1.48, allocations: 0.7536 MB / 0.5388 GB, free: 34.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.48, allocations: 0 / 0.5388 GB, free: 34.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009683/1.481, allocations: 444.7 kB / 0.5392 GB, free: 34.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/1.483, allocations: 466.8 kB / 0.5396 GB, free: 34.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008081/1.491, allocations: 3.32 MB / 0.5429 GB, free: 33.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/1.493, allocations: 1.663 MB / 0.5445 GB, free: 32.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/1.494, allocations: 1.134 MB / 0.5456 GB, free: 32.96 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/1.494, allocations: 0 / 0.5456 GB, free: 32.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.438/4.932, allocations: 55.46 MB / 0.5998 GB, free: 13.13 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat