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.844/1.844, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.68e-05/4.69e-05, allocations: 4 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2751, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.4611, allocations: 93.84 MB / 357.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.4615, allocations: 67.97 kB / 357.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7086/1.17, allocations: 125.1 MB / 482.9 MB, free: 5.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.17, allocations: 0 / 482.9 MB, free: 5.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.005e-05/1.17, allocations: 44 kB / 482.9 MB, free: 5.73 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.007672/1.178, allocations: 2.592 MB / 485.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/1.178, allocations: 8.031 kB / 485.5 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003449/1.178, allocations: 94.52 kB / 485.6 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008999/1.179, allocations: 383.4 kB / 486 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006802/1.186, allocations: 2.224 MB / 488.2 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.759e-05/1.186, allocations: 40.95 kB / 488.2 MB, free: 260 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002627/1.187, allocations: 55.89 kB / 488.3 MB, free: 204 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/1.189, allocations: 0.754 MB / 489 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/1.189, allocations: 0 / 489 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/1.189, allocations: 24 kB / 489.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-05/1.189, allocations: 23.97 kB / 489.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/1.191, allocations: 0.6701 MB / 489.8 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009189/1.2, allocations: 2.955 MB / 492.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/1.201, allocations: 0.5879 MB / 493.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/1.203, allocations: 0.6095 MB / 493.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3065/1.509, allocations: 36.05 MB / 0.5175 GB, free: 41.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007023/1.51, allocations: 309.9 kB / 0.5178 GB, free: 41.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.899e-06/1.51, allocations: 0 / 0.5178 GB, free: 41.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002504/1.513, allocations: 0.889 MB / 0.5187 GB, free: 41.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.513, allocations: 274.3 kB / 0.519 GB, free: 40.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004912/1.518, allocations: 2.315 MB / 0.5212 GB, free: 40.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001671/1.518, allocations: 35.11 kB / 0.5213 GB, free: 40.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/1.519, allocations: 1.153 MB / 0.5224 GB, free: 40.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003101/1.52, allocations: 162.8 kB / 0.5225 GB, free: 40.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.826e-05/1.52, allocations: 14.72 kB / 0.5225 GB, free: 40.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.216e-05/1.52, allocations: 354.2 kB / 0.5229 GB, free: 39.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/1.52, allocations: 182.8 kB / 0.5231 GB, free: 39.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007257/1.521, allocations: 0.5788 MB / 0.5236 GB, free: 39.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/1.522, allocations: 267.3 kB / 0.5239 GB, free: 39.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/1.522, allocations: 7.375 kB / 0.5239 GB, free: 39.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002136/1.524, allocations: 0.8474 MB / 0.5247 GB, free: 39.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/1.524, allocations: 11.44 kB / 0.5247 GB, free: 39.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/1.524, allocations: 79.28 kB / 0.5248 GB, free: 39.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008638/1.525, allocations: 276.3 kB / 0.5251 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/1.526, allocations: 179.9 kB / 0.5252 GB, free: 39.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/1.528, allocations: 0.8854 MB / 0.5261 GB, free: 38.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/1.53, allocations: 127.1 kB / 0.5262 GB, free: 38.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/1.53, allocations: 61.25 kB / 0.5263 GB, free: 38.7 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.000294/1.531, allocations: 171.4 kB / 0.5264 GB, free: 38.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000686/1.531, allocations: 368.3 kB / 0.5268 GB, free: 38.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/1.536, allocations: 1.217 MB / 0.528 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/1.536, allocations: 7.125 kB / 0.528 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/1.536, allocations: 0 / 0.528 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/1.536, allocations: 4.75 kB / 0.528 GB, free: 38.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005114/1.541, allocations: 2.123 MB / 0.5301 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001445/1.541, allocations: 68.09 kB / 0.5301 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/1.542, allocations: 77.45 kB / 0.5302 GB, free: 37.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007146/1.543, allocations: 259.5 kB / 0.5305 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.905e-05/1.543, allocations: 36.48 kB / 0.5305 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/1.544, allocations: 0.8575 MB / 0.5313 GB, free: 37.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/1.544, allocations: 2.594 kB / 0.5313 GB, free: 37.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/1.546, allocations: 1.145 MB / 0.5324 GB, free: 36.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/1.548, allocations: 469 kB / 0.5329 GB, free: 36.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005666/1.548, allocations: 13.91 kB / 0.5329 GB, free: 36.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.55, allocations: 45.88 kB / 0.5329 GB, free: 36.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/1.55, allocations: 68.5 kB / 0.533 GB, free: 36.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/1.55, allocations: 37.84 kB / 0.5331 GB, free: 36.55 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003568/1.554, allocations: 1.764 MB / 0.5348 GB, free: 36.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.253e-06/1.554, allocations: 3.344 kB / 0.5348 GB, free: 36.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002524/1.556, allocations: 0.6311 MB / 0.5354 GB, free: 36.34 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.004122/1.56, allocations: 2.676 MB / 0.538 GB, free: 35.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/1.563, allocations: 0.7248 MB / 0.5387 GB, free: 34.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.563, allocations: 0 / 0.5387 GB, free: 34.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/1.564, allocations: 445.2 kB / 0.5391 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.003012/1.567, allocations: 467.8 kB / 0.5396 GB, free: 34.8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009953/1.577, allocations: 3.317 MB / 0.5428 GB, free: 33.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/1.578, allocations: 1.664 MB / 0.5444 GB, free: 33.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/1.58, allocations: 1.132 MB / 0.5456 GB, free: 33.03 MB / 346.7 MB Notification: Performance of SimCode: time 2.104e-06/1.58, allocations: 0 / 0.5456 GB, free: 33.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.826/5.406, allocations: 55.29 MB / 0.5996 GB, free: 13.3 MB / 362.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