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.799/1.799, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.249e-05/2.256e-05, allocations: 0 / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2874, allocations: 38.77 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.4967, allocations: 93.17 MB / 351.5 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.497, allocations: 71.97 kB / 351.6 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.667/1.164, allocations: 119.9 MB / 471.5 MB, free: 3.352 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.164, allocations: 0 / 471.5 MB, free: 3.352 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.847e-05/1.164, allocations: 44 kB / 471.5 MB, free: 3.309 MB / 314.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.006296/1.17, allocations: 2.588 MB / 474.1 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/1.171, allocations: 8.031 kB / 474.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007728/1.171, allocations: 379.4 kB / 474.5 MB, free: 288 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006515/1.178, allocations: 2.236 MB / 476.7 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/1.178, allocations: 19.95 kB / 476.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002002/1.178, allocations: 35.91 kB / 476.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001795/1.18, allocations: 0.6587 MB / 477.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/1.182, allocations: 0.6935 MB / 478.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/1.182, allocations: 0 / 478.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/1.182, allocations: 4 kB / 478.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/1.182, allocations: 19.98 kB / 478.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008865/1.191, allocations: 2.818 MB / 481 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/1.192, allocations: 0.5766 MB / 481.6 MB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/1.194, allocations: 0.5822 MB / 482.1 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3553/1.549, allocations: 36.05 MB / 0.506 GB, free: 55.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006231/1.55, allocations: 303.5 kB / 0.5063 GB, free: 55.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.907e-06/1.55, allocations: 0 / 0.5063 GB, free: 55.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002211/1.552, allocations: 0.8613 MB / 0.5072 GB, free: 55.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/1.552, allocations: 267.9 kB / 0.5074 GB, free: 55.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/1.556, allocations: 2.101 MB / 0.5095 GB, free: 54.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/1.556, allocations: 30.39 kB / 0.5095 GB, free: 54.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.558, allocations: 1.4 MB / 0.5109 GB, free: 54.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/1.558, allocations: 157.9 kB / 0.511 GB, free: 54.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/1.558, allocations: 0 / 0.511 GB, free: 54.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.593e-05/1.558, allocations: 336.7 kB / 0.5114 GB, free: 54.24 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004294/1.559, allocations: 172.1 kB / 0.5115 GB, free: 54.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/1.559, allocations: 0.5572 MB / 0.5121 GB, free: 53.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006745/1.56, allocations: 257.9 kB / 0.5123 GB, free: 53.72 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/1.56, allocations: 7.766 kB / 0.5123 GB, free: 53.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002531/1.563, allocations: 1.076 MB / 0.5134 GB, free: 53.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/1.563, allocations: 13.09 kB / 0.5134 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001897/1.563, allocations: 83.78 kB / 0.5135 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007506/1.564, allocations: 270.2 kB / 0.5137 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/1.565, allocations: 181.7 kB / 0.5139 GB, free: 53.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/1.566, allocations: 0.9217 MB / 0.5148 GB, free: 52.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/1.568, allocations: 103.8 kB / 0.5149 GB, free: 52.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/1.568, allocations: 64.3 kB / 0.5149 GB, free: 52.95 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.0002751/1.569, allocations: 150.1 kB / 0.5151 GB, free: 52.84 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002104/1.571, allocations: 0.8605 MB / 0.5159 GB, free: 52.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006412/1.572, allocations: 370.7 kB / 0.5163 GB, free: 52.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/1.577, allocations: 1.181 MB / 0.5174 GB, free: 52.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/1.577, allocations: 5.969 kB / 0.5174 GB, free: 52.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/1.577, allocations: 0.8125 kB / 0.5174 GB, free: 52.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/1.577, allocations: 4.781 kB / 0.5175 GB, free: 52.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005129/1.582, allocations: 2.007 MB / 0.5194 GB, free: 51.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001744/1.582, allocations: 68.86 kB / 0.5195 GB, free: 51.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/1.583, allocations: 77.62 kB / 0.5196 GB, free: 51.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006715/1.583, allocations: 266.2 kB / 0.5198 GB, free: 51.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.656e-05/1.583, allocations: 28.88 kB / 0.5198 GB, free: 51.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/1.585, allocations: 0.9006 MB / 0.5207 GB, free: 51.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.585, allocations: 3.844 kB / 0.5207 GB, free: 51.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/1.587, allocations: 1.12 MB / 0.5218 GB, free: 50.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.588, allocations: 468.4 kB / 0.5223 GB, free: 50.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008996/1.589, allocations: 2.438 kB / 0.5223 GB, free: 50.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/1.591, allocations: 40.69 kB / 0.5223 GB, free: 50.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/1.591, allocations: 69.55 kB / 0.5224 GB, free: 50.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/1.591, allocations: 38.75 kB / 0.5224 GB, free: 50.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003567/1.595, allocations: 1.558 MB / 0.5239 GB, free: 50.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.595, allocations: 0 / 0.5239 GB, free: 50.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002522/1.598, allocations: 0.591 MB / 0.5245 GB, free: 50.41 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.004384/1.602, allocations: 2.739 MB / 0.5272 GB, free: 49.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/1.604, allocations: 0.6984 MB / 0.5279 GB, free: 49.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.604, allocations: 0 / 0.5279 GB, free: 49.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009567/1.605, allocations: 438.1 kB / 0.5283 GB, free: 48.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/1.608, allocations: 471.7 kB / 0.5287 GB, free: 48.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008984/1.617, allocations: 3.203 MB / 0.5319 GB, free: 47.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/1.618, allocations: 1.663 MB / 0.5335 GB, free: 47.14 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002349/1.621, allocations: 337.7 kB / 0.5338 GB, free: 47.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/1.623, allocations: 1.125 MB / 0.5349 GB, free: 47.11 MB / 346.7 MB Notification: Performance of SimCode: time 2.444e-06/1.623, allocations: 0 / 0.5349 GB, free: 47.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1472/1.77, allocations: 52.65 MB / 0.5863 GB, free: 17.25 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/1.77, allocations: 121.3 kB / 0.5864 GB, free: 17.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.84/7.611, allocations: 0 / 0.5864 GB, free: 17.06 MB / 346.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