Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.861/1.861, allocations: 171.2 MB / 183.3 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.083e-05/5.101e-05, allocations: 8 kB / 225.1 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2762, allocations: 38.76 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1663/0.4426, allocations: 93.84 MB / 357.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.4429, allocations: 67.97 kB / 357.7 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6432/1.086, allocations: 125.1 MB / 482.8 MB, free: 5.938 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.086, allocations: 0 / 482.8 MB, free: 5.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.621e-05/1.086, allocations: 40 kB / 482.9 MB, free: 5.898 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.007281/1.094, allocations: 2.592 MB / 485.5 MB, free: 3.246 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.521e-05/1.094, allocations: 16.02 kB / 485.5 MB, free: 3.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003161/1.094, allocations: 90.52 kB / 485.6 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008257/1.095, allocations: 379.4 kB / 486 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006503/1.101, allocations: 2.228 MB / 488.2 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.493e-05/1.101, allocations: 40.95 kB / 488.2 MB, free: 428 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/1.102, allocations: 47.91 kB / 488.3 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/1.104, allocations: 0.7599 MB / 489 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/1.104, allocations: 3.938 kB / 489 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/1.104, allocations: 23.98 kB / 489.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-05/1.104, allocations: 23.98 kB / 489.1 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/1.106, allocations: 0.676 MB / 489.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008916/1.115, allocations: 2.951 MB / 492.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/1.116, allocations: 0.5964 MB / 493.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/1.117, allocations: 0.6017 MB / 493.9 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3138/1.431, allocations: 36.05 MB / 0.5175 GB, free: 41.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007322/1.432, allocations: 310 kB / 0.5178 GB, free: 41.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 5.21e-06/1.432, allocations: 2.031 kB / 0.5178 GB, free: 41.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002262/1.434, allocations: 0.8995 MB / 0.5187 GB, free: 41.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.397e-05/1.434, allocations: 270.3 kB / 0.519 GB, free: 40.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004856/1.439, allocations: 2.315 MB / 0.5212 GB, free: 40.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002144/1.44, allocations: 37.11 kB / 0.5213 GB, free: 40.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/1.441, allocations: 1.399 MB / 0.5226 GB, free: 40.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003082/1.442, allocations: 160.6 kB / 0.5228 GB, free: 40.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/1.442, allocations: 15.88 kB / 0.5228 GB, free: 40.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/1.442, allocations: 345.7 kB / 0.5231 GB, free: 40 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/1.442, allocations: 186.9 kB / 0.5233 GB, free: 40 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000738/1.443, allocations: 0.5866 MB / 0.5239 GB, free: 39.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006889/1.444, allocations: 274.9 kB / 0.5241 GB, free: 39.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/1.444, allocations: 3.719 kB / 0.5241 GB, free: 39.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002829/1.447, allocations: 1.174 MB / 0.5253 GB, free: 39.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/1.447, allocations: 10.78 kB / 0.5253 GB, free: 39.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/1.447, allocations: 84.31 kB / 0.5254 GB, free: 39.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009074/1.448, allocations: 275.1 kB / 0.5256 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/1.449, allocations: 177.4 kB / 0.5258 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/1.45, allocations: 0.8838 MB / 0.5267 GB, free: 38.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002298/1.453, allocations: 119.7 kB / 0.5268 GB, free: 38.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/1.453, allocations: 67.69 kB / 0.5269 GB, free: 38.71 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.0002951/1.453, allocations: 167.7 kB / 0.527 GB, free: 38.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007324/1.454, allocations: 372.6 kB / 0.5274 GB, free: 38.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/1.459, allocations: 1.215 MB / 0.5286 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/1.459, allocations: 5.984 kB / 0.5286 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/1.459, allocations: 3.312 kB / 0.5286 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/1.459, allocations: 3.844 kB / 0.5286 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00537/1.464, allocations: 2.127 MB / 0.5306 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001438/1.465, allocations: 70.17 kB / 0.5307 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006251/1.465, allocations: 76.27 kB / 0.5308 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007305/1.466, allocations: 255.4 kB / 0.531 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/1.466, allocations: 36.05 kB / 0.5311 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/1.467, allocations: 0.861 MB / 0.5319 GB, free: 37.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.467, allocations: 0 / 0.5319 GB, free: 37.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/1.469, allocations: 1.146 MB / 0.533 GB, free: 36.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.471, allocations: 476.4 kB / 0.5335 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006206/1.471, allocations: 10.31 kB / 0.5335 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/1.473, allocations: 43.16 kB / 0.5335 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/1.473, allocations: 74.72 kB / 0.5336 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/1.473, allocations: 32.84 kB / 0.5336 GB, free: 36.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003727/1.477, allocations: 1.767 MB / 0.5354 GB, free: 36.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.477, allocations: 0 / 0.5354 GB, free: 36.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002447/1.48, allocations: 0.6282 MB / 0.536 GB, free: 36.35 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.004314/1.484, allocations: 2.687 MB / 0.5386 GB, free: 35.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/1.486, allocations: 0.7475 MB / 0.5393 GB, free: 34.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.486, allocations: 3.812 kB / 0.5393 GB, free: 34.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/1.487, allocations: 438.5 kB / 0.5397 GB, free: 34.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/1.49, allocations: 474.8 kB / 0.5402 GB, free: 34.8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008938/1.499, allocations: 3.247 MB / 0.5434 GB, free: 33.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/1.5, allocations: 1.666 MB / 0.545 GB, free: 33.06 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001941/1.502, allocations: 342.5 kB / 0.5453 GB, free: 33.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/1.504, allocations: 1.128 MB / 0.5464 GB, free: 33.03 MB / 346.7 MB Notification: Performance of SimCode: time 1.693e-06/1.504, allocations: 0 / 0.5464 GB, free: 33.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1902/1.694, allocations: 58.18 MB / 0.6032 GB, free: 9.457 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/1.694, allocations: 176.5 kB / 0.6034 GB, free: 9.223 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.678/7.372, allocations: 0 / 0.6034 GB, free: 9.223 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat