Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.223e-05, allocations: 4 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09662, allocations: 44.5 MB / 300 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5392, allocations: 97.66 MB / 397.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5395, allocations: 76.45 kB / 397.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4146/0.9541, allocations: 123 MB / 0.5085 GB, free: 10.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.9542, allocations: 0 / 0.5085 GB, free: 10.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.909e-05/0.9543, allocations: 48 kB / 0.5086 GB, free: 10.8 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.007395/0.9617, allocations: 2.58 MB / 0.5111 GB, free: 8.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.9618, allocations: 8.031 kB / 0.5111 GB, free: 8.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003139/0.9621, allocations: 98.52 kB / 0.5112 GB, free: 8.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008523/0.9629, allocations: 379.4 kB / 0.5116 GB, free: 7.676 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006533/0.9695, allocations: 2.243 MB / 0.5137 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.9696, allocations: 33 kB / 0.5138 GB, free: 5.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.9699, allocations: 51.89 kB / 0.5138 GB, free: 5.273 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.9718, allocations: 0.754 MB / 0.5146 GB, free: 4.484 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.9718, allocations: 3.938 kB / 0.5146 GB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.972, allocations: 20 kB / 0.5146 GB, free: 4.461 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.329e-05/0.972, allocations: 19.98 kB / 0.5146 GB, free: 4.441 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.9738, allocations: 0.674 MB / 0.5153 GB, free: 3.766 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009333/0.9832, allocations: 2.943 MB / 0.5181 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.9847, allocations: 0.585 MB / 0.5187 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.271/1.256, allocations: 0.5955 MB / 0.5193 GB, free: 80.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05117/1.307, allocations: 36.06 MB / 0.5545 GB, free: 53.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00067/1.308, allocations: 312 kB / 0.5548 GB, free: 53.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.068e-06/1.308, allocations: 0 / 0.5548 GB, free: 53.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002392/1.31, allocations: 0.8922 MB / 0.5557 GB, free: 53.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.31, allocations: 275.9 kB / 0.5559 GB, free: 53.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00521/1.316, allocations: 2.311 MB / 0.5582 GB, free: 53.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002088/1.316, allocations: 36.45 kB / 0.5582 GB, free: 53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001434/1.317, allocations: 1.152 MB / 0.5594 GB, free: 52.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003191/1.318, allocations: 167.1 kB / 0.5595 GB, free: 52.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.761e-05/1.318, allocations: 16.38 kB / 0.5595 GB, free: 52.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.599e-05/1.318, allocations: 342.7 kB / 0.5599 GB, free: 52.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/1.318, allocations: 182 kB / 0.56 GB, free: 52.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007288/1.319, allocations: 0.578 MB / 0.5606 GB, free: 51.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007019/1.32, allocations: 273.8 kB / 0.5609 GB, free: 51.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/1.32, allocations: 3.719 kB / 0.5609 GB, free: 51.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002111/1.322, allocations: 0.8472 MB / 0.5617 GB, free: 51.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/1.322, allocations: 11.34 kB / 0.5617 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/1.322, allocations: 81.91 kB / 0.5618 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008207/1.323, allocations: 281 kB / 0.562 GB, free: 51.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/1.324, allocations: 183.4 kB / 0.5622 GB, free: 51.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/1.326, allocations: 0.8746 MB / 0.5631 GB, free: 51.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/1.328, allocations: 124.2 kB / 0.5632 GB, free: 51.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/1.328, allocations: 74.47 kB / 0.5633 GB, free: 51.21 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.0002672/1.328, allocations: 164 kB / 0.5634 GB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007035/1.329, allocations: 370 kB / 0.5638 GB, free: 50.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004881/1.334, allocations: 1.218 MB / 0.565 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.921e-05/1.334, allocations: 3.25 kB / 0.565 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/1.334, allocations: 7.891 kB / 0.565 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/1.334, allocations: 4.641 kB / 0.565 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005856/1.34, allocations: 2.117 MB / 0.567 GB, free: 50.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001425/1.34, allocations: 76.39 kB / 0.5671 GB, free: 50.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006087/1.341, allocations: 68.66 kB / 0.5672 GB, free: 50.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007398/1.342, allocations: 257.3 kB / 0.5674 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/1.342, allocations: 31.34 kB / 0.5675 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/1.343, allocations: 0.8634 MB / 0.5683 GB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.343, allocations: 3.656 kB / 0.5683 GB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002176/1.345, allocations: 1.147 MB / 0.5694 GB, free: 49.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/1.346, allocations: 475.3 kB / 0.5699 GB, free: 49.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007479/1.347, allocations: 13.97 kB / 0.5699 GB, free: 49.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/1.349, allocations: 41.72 kB / 0.5699 GB, free: 49.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/1.349, allocations: 72.27 kB / 0.57 GB, free: 49.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/1.349, allocations: 42.88 kB / 0.57 GB, free: 49.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004044/1.354, allocations: 1.762 MB / 0.5718 GB, free: 48.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.354, allocations: 0 / 0.5718 GB, free: 48.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002693/1.356, allocations: 0.6214 MB / 0.5724 GB, free: 48.84 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.004451/1.361, allocations: 2.67 MB / 0.575 GB, free: 47.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001986/1.363, allocations: 0.7174 MB / 0.5757 GB, free: 47.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.363, allocations: 3.062 kB / 0.5757 GB, free: 47.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/1.364, allocations: 447.8 kB / 0.5761 GB, free: 47.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/1.367, allocations: 466.5 kB / 0.5765 GB, free: 47.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009982/1.377, allocations: 3.314 MB / 0.5798 GB, free: 46.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/1.378, allocations: 1.667 MB / 0.5814 GB, free: 45.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/1.381, allocations: 1.13 MB / 0.5825 GB, free: 45.53 MB / 410.7 MB Notification: Performance of SimCode: time 2.274e-06/1.381, allocations: 0 / 0.5825 GB, free: 45.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.483/4.864, allocations: 55.3 MB / 0.6365 GB, free: 20.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat