Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.039e-05, allocations: 4 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09697, allocations: 44.5 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.511/0.608, allocations: 97.66 MB / 397.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.6083, allocations: 73.14 kB / 397.7 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4208/1.029, allocations: 123 MB / 0.5086 GB, free: 10.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.029, allocations: 4 kB / 0.5086 GB, free: 10.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.169e-05/1.029, allocations: 40 kB / 0.5086 GB, free: 10.42 MB / 410.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.008108/1.037, allocations: 2.584 MB / 0.5111 GB, free: 7.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/1.038, allocations: 19.97 kB / 0.5111 GB, free: 7.762 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003334/1.038, allocations: 90.52 kB / 0.5112 GB, free: 7.664 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009177/1.039, allocations: 379.5 kB / 0.5116 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007001/1.046, allocations: 2.236 MB / 0.5138 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/1.046, allocations: 33 kB / 0.5138 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002712/1.046, allocations: 51.89 kB / 0.5139 GB, free: 4.895 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/1.048, allocations: 0.7501 MB / 0.5146 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/1.048, allocations: 0 / 0.5146 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/1.048, allocations: 23.98 kB / 0.5146 GB, free: 4.086 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-05/1.049, allocations: 19.98 kB / 0.5146 GB, free: 4.066 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/1.05, allocations: 0.6779 MB / 0.5153 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009267/1.06, allocations: 2.943 MB / 0.5182 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3128/1.373, allocations: 0.5821 MB / 0.5187 GB, free: 81.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/1.374, allocations: 0.6007 MB / 0.5193 GB, free: 81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05092/1.425, allocations: 36.06 MB / 0.5545 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006868/1.426, allocations: 309.3 kB / 0.5548 GB, free: 54.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.318e-06/1.426, allocations: 3.938 kB / 0.5548 GB, free: 54.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002249/1.428, allocations: 0.8819 MB / 0.5557 GB, free: 54.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.713e-05/1.428, allocations: 268.5 kB / 0.5559 GB, free: 54.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004494/1.433, allocations: 2.316 MB / 0.5582 GB, free: 53.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/1.433, allocations: 35.14 kB / 0.5582 GB, free: 53.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/1.435, allocations: 1.402 MB / 0.5596 GB, free: 53.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003399/1.435, allocations: 169.5 kB / 0.5598 GB, free: 53.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-05/1.435, allocations: 16.53 kB / 0.5598 GB, free: 53.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.186e-05/1.435, allocations: 337.9 kB / 0.5601 GB, free: 53.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/1.436, allocations: 185.9 kB / 0.5603 GB, free: 53.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009004/1.437, allocations: 0.5755 MB / 0.5609 GB, free: 52.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006769/1.437, allocations: 268.8 kB / 0.5611 GB, free: 52.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.437, allocations: 2.875 kB / 0.5611 GB, free: 52.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002639/1.44, allocations: 1.157 MB / 0.5622 GB, free: 52.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/1.44, allocations: 12.14 kB / 0.5623 GB, free: 52.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/1.44, allocations: 83.73 kB / 0.5623 GB, free: 52.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008401/1.441, allocations: 275.5 kB / 0.5626 GB, free: 52.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/1.442, allocations: 180.2 kB / 0.5628 GB, free: 52.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/1.444, allocations: 0.884 MB / 0.5636 GB, free: 51.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/1.446, allocations: 121.2 kB / 0.5637 GB, free: 51.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/1.446, allocations: 69.34 kB / 0.5638 GB, free: 51.9 MB / 410.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.0002687/1.446, allocations: 172 kB / 0.564 GB, free: 51.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005719/1.447, allocations: 364.1 kB / 0.5643 GB, free: 51.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004608/1.451, allocations: 1.224 MB / 0.5655 GB, free: 51.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/1.451, allocations: 10.91 kB / 0.5655 GB, free: 51.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/1.451, allocations: 0 / 0.5655 GB, free: 51.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/1.451, allocations: 3.938 kB / 0.5655 GB, free: 51.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005068/1.456, allocations: 2.116 MB / 0.5676 GB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001394/1.457, allocations: 72.22 kB / 0.5677 GB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005874/1.457, allocations: 73.86 kB / 0.5677 GB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006962/1.458, allocations: 261.8 kB / 0.568 GB, free: 51.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.454e-05/1.458, allocations: 33.84 kB / 0.568 GB, free: 51.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/1.459, allocations: 0.8595 MB / 0.5689 GB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.459, allocations: 3.094 kB / 0.5689 GB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/1.461, allocations: 1.136 MB / 0.57 GB, free: 50.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/1.463, allocations: 474 kB / 0.5704 GB, free: 49.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005209/1.463, allocations: 13.89 kB / 0.5704 GB, free: 49.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/1.465, allocations: 45.78 kB / 0.5705 GB, free: 49.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/1.465, allocations: 68.12 kB / 0.5705 GB, free: 49.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/1.465, allocations: 40.52 kB / 0.5706 GB, free: 49.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003493/1.468, allocations: 1.764 MB / 0.5723 GB, free: 49.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.469, allocations: 0 / 0.5723 GB, free: 49.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002478/1.471, allocations: 0.6242 MB / 0.5729 GB, free: 49.54 MB / 410.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.004154/1.475, allocations: 2.672 MB / 0.5755 GB, free: 48.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/1.477, allocations: 0.7162 MB / 0.5762 GB, free: 48.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/1.477, allocations: 0 / 0.5762 GB, free: 48.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009913/1.478, allocations: 439 kB / 0.5766 GB, free: 48.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.481, allocations: 468.1 kB / 0.5771 GB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009606/1.491, allocations: 3.255 MB / 0.5803 GB, free: 47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/1.492, allocations: 1.666 MB / 0.5819 GB, free: 46.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002102/1.494, allocations: 343.2 kB / 0.5822 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/1.496, allocations: 1.125 MB / 0.5833 GB, free: 46.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/1.496, allocations: 0 / 0.5833 GB, free: 46.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1844/1.681, allocations: 58.17 MB / 0.6401 GB, free: 16.72 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/1.681, allocations: 183.4 kB / 0.6403 GB, free: 16.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.069/7.75, allocations: 0 / 0.6403 GB, free: 16.48 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat