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.94/1.94, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.023e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09798, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4424/0.5404, allocations: 97.65 MB / 397.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.5407, allocations: 76.2 kB / 397.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4317/0.9724, allocations: 123 MB / 0.5085 GB, free: 10.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.42e-06/0.9725, allocations: 4 kB / 0.5085 GB, free: 10.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.758e-05/0.9726, allocations: 40 kB / 0.5085 GB, free: 10.94 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.006987/0.9796, allocations: 2.591 MB / 0.5111 GB, free: 8.301 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.9797, allocations: 8.031 kB / 0.5111 GB, free: 8.293 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002971/0.98, allocations: 98.5 kB / 0.5112 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008123/0.9808, allocations: 379.5 kB / 0.5115 GB, free: 7.812 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006284/0.9871, allocations: 2.239 MB / 0.5137 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.9872, allocations: 33 kB / 0.5137 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.9874, allocations: 51.84 kB / 0.5138 GB, free: 5.414 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.9893, allocations: 0.7598 MB / 0.5145 GB, free: 4.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.9893, allocations: 4 kB / 0.5145 GB, free: 4.617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.9895, allocations: 16 kB / 0.5146 GB, free: 4.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/0.9895, allocations: 19.98 kB / 0.5146 GB, free: 4.582 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.9913, allocations: 0.6877 MB / 0.5152 GB, free: 3.891 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00874/1, allocations: 2.947 MB / 0.5181 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/1.001, allocations: 0.5883 MB / 0.5187 GB, free: 268 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2713/1.273, allocations: 0.5915 MB / 0.5193 GB, free: 81.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05074/1.324, allocations: 36.06 MB / 0.5545 GB, free: 54.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007033/1.324, allocations: 311.4 kB / 0.5548 GB, free: 54.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.857e-06/1.324, allocations: 0 / 0.5548 GB, free: 54.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00231/1.327, allocations: 0.8993 MB / 0.5557 GB, free: 54.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/1.327, allocations: 268.8 kB / 0.5559 GB, free: 54.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00474/1.332, allocations: 2.314 MB / 0.5582 GB, free: 54.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001604/1.332, allocations: 35.27 kB / 0.5582 GB, free: 54.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/1.333, allocations: 1.153 MB / 0.5593 GB, free: 53.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/1.333, allocations: 163.4 kB / 0.5595 GB, free: 53.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.817e-05/1.334, allocations: 15.81 kB / 0.5595 GB, free: 53.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/1.334, allocations: 351.7 kB / 0.5598 GB, free: 53.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/1.334, allocations: 180.3 kB / 0.56 GB, free: 53.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007126/1.335, allocations: 0.5827 MB / 0.5606 GB, free: 52.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/1.336, allocations: 273.9 kB / 0.5608 GB, free: 52.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/1.336, allocations: 3.062 kB / 0.5608 GB, free: 52.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002105/1.338, allocations: 0.8813 MB / 0.5617 GB, free: 52.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/1.338, allocations: 7.812 kB / 0.5617 GB, free: 52.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/1.338, allocations: 80.89 kB / 0.5618 GB, free: 52.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008048/1.339, allocations: 285.4 kB / 0.5621 GB, free: 52.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/1.34, allocations: 182.7 kB / 0.5622 GB, free: 52.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/1.341, allocations: 0.8744 MB / 0.5631 GB, free: 52.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/1.343, allocations: 131.8 kB / 0.5632 GB, free: 52.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/1.343, allocations: 65.78 kB / 0.5633 GB, free: 52.26 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.0002662/1.344, allocations: 161.7 kB / 0.5634 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005102/1.344, allocations: 369.9 kB / 0.5638 GB, free: 51.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/1.349, allocations: 1.219 MB / 0.565 GB, free: 51.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/1.349, allocations: 4.688 kB / 0.565 GB, free: 51.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.683e-05/1.349, allocations: 7.766 kB / 0.565 GB, free: 51.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/1.349, allocations: 3.844 kB / 0.565 GB, free: 51.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/1.354, allocations: 2.117 MB / 0.5671 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000138/1.354, allocations: 69.62 kB / 0.5671 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00059/1.355, allocations: 76.05 kB / 0.5672 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006948/1.355, allocations: 261.9 kB / 0.5675 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.011e-05/1.355, allocations: 32.44 kB / 0.5675 GB, free: 51.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/1.357, allocations: 0.8648 MB / 0.5683 GB, free: 50.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/1.357, allocations: 3.812 kB / 0.5683 GB, free: 50.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/1.359, allocations: 1.145 MB / 0.5694 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/1.36, allocations: 469.3 kB / 0.5699 GB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004824/1.36, allocations: 15 kB / 0.5699 GB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.362, allocations: 41.84 kB / 0.57 GB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/1.362, allocations: 69.14 kB / 0.57 GB, free: 50.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.362, allocations: 44.28 kB / 0.5701 GB, free: 50.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003589/1.366, allocations: 1.764 MB / 0.5718 GB, free: 49.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.366, allocations: 0 / 0.5718 GB, free: 49.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002423/1.368, allocations: 0.6244 MB / 0.5724 GB, free: 49.89 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.004224/1.373, allocations: 2.677 MB / 0.575 GB, free: 48.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00202/1.375, allocations: 0.7407 MB / 0.5757 GB, free: 48.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.375, allocations: 0 / 0.5757 GB, free: 48.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/1.376, allocations: 441.4 kB / 0.5761 GB, free: 48.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/1.379, allocations: 470.4 kB / 0.5766 GB, free: 48.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009034/1.388, allocations: 3.319 MB / 0.5798 GB, free: 47.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/1.389, allocations: 1.665 MB / 0.5815 GB, free: 46.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/1.391, allocations: 1.131 MB / 0.5826 GB, free: 46.58 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/1.391, allocations: 3.344 kB / 0.5826 GB, free: 46.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.435/4.826, allocations: 55.47 MB / 0.6367 GB, free: 21.24 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