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.862/1.862, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.929e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3017, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.4608, allocations: 93.17 MB / 351.5 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.4611, allocations: 71.97 kB / 351.6 MB, free: 0.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6439/1.105, allocations: 119.9 MB / 471.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.105, allocations: 0 / 471.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.22e-05/1.105, allocations: 44 kB / 471.5 MB, free: 3.559 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.006678/1.112, allocations: 2.592 MB / 474.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/1.112, allocations: 8.031 kB / 474.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008943/1.113, allocations: 379.4 kB / 474.5 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006473/1.119, allocations: 2.232 MB / 476.7 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.817e-05/1.119, allocations: 19.95 kB / 476.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/1.12, allocations: 39.89 kB / 476.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001719/1.121, allocations: 0.6548 MB / 477.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/1.123, allocations: 0.6974 MB / 478.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/1.123, allocations: 0 / 478.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/1.123, allocations: 7.984 kB / 478.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.679e-05/1.123, allocations: 19.98 kB / 478.1 MB, free: 12.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009067/1.132, allocations: 2.814 MB / 481 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/1.134, allocations: 0.5843 MB / 481.5 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/1.135, allocations: 0.5783 MB / 482.1 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2972/1.432, allocations: 36.05 MB / 0.506 GB, free: 56.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006235/1.433, allocations: 294.9 kB / 0.5063 GB, free: 56.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.237e-06/1.433, allocations: 3.812 kB / 0.5063 GB, free: 56.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002289/1.435, allocations: 0.8581 MB / 0.5071 GB, free: 56.24 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.572e-05/1.436, allocations: 268 kB / 0.5074 GB, free: 55.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/1.44, allocations: 2.103 MB / 0.5095 GB, free: 55.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/1.44, allocations: 29.27 kB / 0.5095 GB, free: 55.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/1.442, allocations: 1.156 MB / 0.5106 GB, free: 55.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003101/1.442, allocations: 164.2 kB / 0.5108 GB, free: 55.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/1.442, allocations: 0 / 0.5108 GB, free: 55.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/1.442, allocations: 342.2 kB / 0.5111 GB, free: 54.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/1.443, allocations: 166.4 kB / 0.5113 GB, free: 54.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/1.444, allocations: 0.5638 MB / 0.5118 GB, free: 54.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006982/1.444, allocations: 256.9 kB / 0.512 GB, free: 54.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/1.444, allocations: 7.922 kB / 0.5121 GB, free: 54.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001998/1.446, allocations: 0.7752 MB / 0.5128 GB, free: 54.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/1.446, allocations: 13.47 kB / 0.5128 GB, free: 54.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001922/1.447, allocations: 84.64 kB / 0.5129 GB, free: 54.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008374/1.447, allocations: 271.3 kB / 0.5132 GB, free: 54.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/1.449, allocations: 178.1 kB / 0.5133 GB, free: 54.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/1.45, allocations: 0.9277 MB / 0.5142 GB, free: 53.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002239/1.452, allocations: 103 kB / 0.5143 GB, free: 53.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002893/1.453, allocations: 63.55 kB / 0.5144 GB, free: 53.83 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.0002988/1.453, allocations: 151.7 kB / 0.5145 GB, free: 53.72 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002371/1.455, allocations: 0.8631 MB / 0.5154 GB, free: 53.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008104/1.456, allocations: 365.6 kB / 0.5157 GB, free: 53.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0047/1.461, allocations: 1.182 MB / 0.5169 GB, free: 53.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/1.461, allocations: 6.125 kB / 0.5169 GB, free: 53.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/1.461, allocations: 1.344 kB / 0.5169 GB, free: 53.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.461, allocations: 7.5 kB / 0.5169 GB, free: 53.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005037/1.466, allocations: 2.011 MB / 0.5189 GB, free: 52.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001767/1.466, allocations: 71.02 kB / 0.5189 GB, free: 52.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/1.467, allocations: 69.58 kB / 0.519 GB, free: 52.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007349/1.468, allocations: 262.9 kB / 0.5193 GB, free: 52.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/1.468, allocations: 38.64 kB / 0.5193 GB, free: 52.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/1.469, allocations: 0.8973 MB / 0.5202 GB, free: 52.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.469, allocations: 0 / 0.5202 GB, free: 52.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/1.471, allocations: 1.112 MB / 0.5213 GB, free: 51.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/1.473, allocations: 474 kB / 0.5217 GB, free: 51.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008198/1.473, allocations: 6.469 kB / 0.5217 GB, free: 51.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/1.475, allocations: 41.3 kB / 0.5218 GB, free: 51.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/1.475, allocations: 68.97 kB / 0.5218 GB, free: 51.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/1.475, allocations: 42.42 kB / 0.5219 GB, free: 51.47 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003278/1.479, allocations: 1.557 MB / 0.5234 GB, free: 51.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.479, allocations: 0 / 0.5234 GB, free: 51.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002433/1.481, allocations: 0.5925 MB / 0.524 GB, free: 51.29 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.004133/1.485, allocations: 2.733 MB / 0.5266 GB, free: 50.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001905/1.487, allocations: 0.7027 MB / 0.5273 GB, free: 49.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.487, allocations: 2.891 kB / 0.5273 GB, free: 49.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009433/1.488, allocations: 435.5 kB / 0.5277 GB, free: 49.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0027/1.491, allocations: 458.6 kB / 0.5282 GB, free: 49.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009032/1.5, allocations: 3.269 MB / 0.5314 GB, free: 48.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/1.501, allocations: 1.664 MB / 0.533 GB, free: 47.99 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001643/1.503, allocations: 1.129 MB / 0.5341 GB, free: 47.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/1.503, allocations: 0 / 0.5341 GB, free: 47.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.577/5.08, allocations: 55.29 MB / 0.5881 GB, free: 16.61 MB / 346.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