Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.608/2.608, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.58e-05/4.586e-05, allocations: 6.031 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1307, allocations: 50.4 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.6191, allocations: 104.3 MB / 446.9 MB, free: 6.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.6194, allocations: 68.16 kB / 447 MB, free: 6.121 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7986/1.418, allocations: 138.4 MB / 0.5717 GB, free: 102.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.418, allocations: 0 / 0.5717 GB, free: 102.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.439e-05/1.418, allocations: 41.09 kB / 0.5717 GB, free: 102.1 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.007268/1.426, allocations: 2.588 MB / 0.5742 GB, free: 100.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/1.426, allocations: 10.5 kB / 0.5742 GB, free: 100.5 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003607/1.426, allocations: 103.3 kB / 0.5743 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008598/1.427, allocations: 371.3 kB / 0.5747 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006401/1.433, allocations: 2.213 MB / 0.5769 GB, free: 99.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/1.433, allocations: 35.28 kB / 0.5769 GB, free: 99.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003285/1.434, allocations: 52.66 kB / 0.5769 GB, free: 99.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/1.436, allocations: 0.7495 MB / 0.5777 GB, free: 98.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/1.436, allocations: 0 / 0.5777 GB, free: 98.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/1.436, allocations: 19.5 kB / 0.5777 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.155e-05/1.436, allocations: 22.94 kB / 0.5777 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/1.438, allocations: 0.6709 MB / 0.5784 GB, free: 98.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/1.448, allocations: 2.93 MB / 0.5812 GB, free: 97.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/1.449, allocations: 0.5893 MB / 0.5818 GB, free: 96.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/1.451, allocations: 0.6051 MB / 0.5824 GB, free: 96.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05015/1.501, allocations: 35.97 MB / 0.6175 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007699/1.502, allocations: 308 kB / 0.6178 GB, free: 65.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.719e-06/1.502, allocations: 4 kB / 0.6178 GB, free: 65.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002646/1.504, allocations: 0.8806 MB / 0.6187 GB, free: 64.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.505, allocations: 265 kB / 0.6189 GB, free: 64.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005676/1.51, allocations: 2.301 MB / 0.6212 GB, free: 61.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/1.511, allocations: 37.7 kB / 0.6212 GB, free: 61.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001863/1.512, allocations: 1.393 MB / 0.6226 GB, free: 60.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003535/1.513, allocations: 166.5 kB / 0.6227 GB, free: 60.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/1.513, allocations: 16 kB / 0.6227 GB, free: 60.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.759e-05/1.513, allocations: 337.9 kB / 0.6231 GB, free: 59.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/1.514, allocations: 182 kB / 0.6232 GB, free: 59.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007598/1.514, allocations: 0.5783 MB / 0.6238 GB, free: 59.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007737/1.515, allocations: 277.2 kB / 0.6241 GB, free: 58.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/1.515, allocations: 4 kB / 0.6241 GB, free: 58.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003167/1.518, allocations: 1.14 MB / 0.6252 GB, free: 57.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/1.519, allocations: 12 kB / 0.6252 GB, free: 57.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001673/1.519, allocations: 83.98 kB / 0.6253 GB, free: 57.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008696/1.52, allocations: 272.8 kB / 0.6255 GB, free: 57.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/1.521, allocations: 179.7 kB / 0.6257 GB, free: 57.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/1.522, allocations: 0.8838 MB / 0.6266 GB, free: 56.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/1.525, allocations: 122.9 kB / 0.6267 GB, free: 56.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/1.525, allocations: 71.92 kB / 0.6268 GB, free: 55.98 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.0002648/1.525, allocations: 166 kB / 0.6269 GB, free: 55.82 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000786/1.526, allocations: 363.7 kB / 0.6273 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/1.531, allocations: 1.215 MB / 0.6285 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/1.531, allocations: 4 kB / 0.6285 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.006e-06/1.531, allocations: 4 kB / 0.6285 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/1.531, allocations: 3.984 kB / 0.6285 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006304/1.538, allocations: 2.116 MB / 0.6305 GB, free: 52.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001426/1.538, allocations: 72.11 kB / 0.6306 GB, free: 51.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000666/1.539, allocations: 79.88 kB / 0.6307 GB, free: 51.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008208/1.539, allocations: 252.8 kB / 0.6309 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/1.54, allocations: 31.98 kB / 0.6309 GB, free: 51.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/1.541, allocations: 0.8566 MB / 0.6318 GB, free: 50.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.541, allocations: 3.938 kB / 0.6318 GB, free: 50.73 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/1.543, allocations: 1.135 MB / 0.6329 GB, free: 49.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/1.545, allocations: 468.5 kB / 0.6333 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009554/1.546, allocations: 15.95 kB / 0.6334 GB, free: 49.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/1.548, allocations: 47.95 kB / 0.6334 GB, free: 48.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003257/1.548, allocations: 59.94 kB / 0.6335 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/1.549, allocations: 43.98 kB / 0.6335 GB, free: 48.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004416/1.553, allocations: 1.752 MB / 0.6352 GB, free: 47.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.362e-06/1.553, allocations: 0 / 0.6352 GB, free: 47.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002828/1.556, allocations: 0.6166 MB / 0.6358 GB, free: 46.5 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.004631/1.561, allocations: 2.667 MB / 0.6384 GB, free: 43.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002238/1.563, allocations: 0.7196 MB / 0.6391 GB, free: 43.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.563, allocations: 2.25 kB / 0.6391 GB, free: 43.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/1.564, allocations: 444 kB / 0.6395 GB, free: 42.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/1.569, allocations: 0.5457 MB / 0.6401 GB, free: 42.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/1.579, allocations: 3.226 MB / 0.6432 GB, free: 38.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/1.581, allocations: 1.662 MB / 0.6449 GB, free: 37.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002377/1.583, allocations: 333.8 kB / 0.6452 GB, free: 36.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001993/1.585, allocations: 1.124 MB / 0.6463 GB, free: 35.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.753e-06/1.585, allocations: 11.88 kB / 0.6463 GB, free: 35.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4599/2.045, allocations: 57.89 MB / 0.7028 GB, free: 109.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/2.046, allocations: 166.5 kB / 0.703 GB, free: 109 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.656/7.702, allocations: 0 / 0.703 GB, free: 109 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat