Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.158/2.158, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.122e-05, allocations: 0 / 255.4 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09762/0.09769, allocations: 44.51 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4999/0.5977, allocations: 97.65 MB / 397.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.5981, allocations: 69.28 kB / 397.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4091/1.007, allocations: 123 MB / 0.5085 GB, free: 10.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.007, allocations: 0 / 0.5085 GB, free: 10.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.827e-05/1.007, allocations: 44 kB / 0.5086 GB, free: 10.34 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.007477/1.015, allocations: 2.58 MB / 0.5111 GB, free: 7.711 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/1.015, allocations: 12.03 kB / 0.5111 GB, free: 7.699 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/1.015, allocations: 94.52 kB / 0.5112 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008129/1.016, allocations: 379.5 kB / 0.5115 GB, free: 7.223 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006643/1.023, allocations: 2.239 MB / 0.5137 GB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.975e-05/1.023, allocations: 40.94 kB / 0.5138 GB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/1.023, allocations: 51.89 kB / 0.5138 GB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/1.025, allocations: 0.7559 MB / 0.5146 GB, free: 4.027 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/1.025, allocations: 3.984 kB / 0.5146 GB, free: 4.023 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/1.025, allocations: 24 kB / 0.5146 GB, free: 4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.752e-05/1.025, allocations: 19.98 kB / 0.5146 GB, free: 3.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/1.027, allocations: 0.676 MB / 0.5153 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008976/1.036, allocations: 2.939 MB / 0.5181 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2805/1.317, allocations: 0.5888 MB / 0.5187 GB, free: 80.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/1.318, allocations: 0.5955 MB / 0.5193 GB, free: 80.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05104/1.369, allocations: 36.06 MB / 0.5545 GB, free: 53.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006783/1.37, allocations: 314.7 kB / 0.5548 GB, free: 53.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.787e-06/1.37, allocations: 0 / 0.5548 GB, free: 53.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002286/1.372, allocations: 0.8934 MB / 0.5557 GB, free: 53.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/1.372, allocations: 268.8 kB / 0.5559 GB, free: 53.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/1.377, allocations: 2.312 MB / 0.5582 GB, free: 52.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/1.377, allocations: 38.39 kB / 0.5582 GB, free: 52.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/1.379, allocations: 1.401 MB / 0.5596 GB, free: 52.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/1.379, allocations: 165.9 kB / 0.5598 GB, free: 52.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.794e-05/1.379, allocations: 15.59 kB / 0.5598 GB, free: 52.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/1.379, allocations: 337.3 kB / 0.5601 GB, free: 52.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005212/1.38, allocations: 187.9 kB / 0.5603 GB, free: 52.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007328/1.38, allocations: 0.5768 MB / 0.5608 GB, free: 51.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/1.381, allocations: 277.3 kB / 0.5611 GB, free: 51.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.381, allocations: 5.344 kB / 0.5611 GB, free: 51.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002706/1.384, allocations: 1.185 MB / 0.5623 GB, free: 51.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/1.384, allocations: 13.31 kB / 0.5623 GB, free: 51.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/1.384, allocations: 80.94 kB / 0.5624 GB, free: 51.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008186/1.385, allocations: 275.5 kB / 0.5626 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/1.386, allocations: 177 kB / 0.5628 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/1.387, allocations: 0.8764 MB / 0.5636 GB, free: 51.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/1.389, allocations: 120 kB / 0.5638 GB, free: 51.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/1.39, allocations: 67.09 kB / 0.5638 GB, free: 51.07 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.0002842/1.39, allocations: 168.2 kB / 0.564 GB, free: 50.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007203/1.391, allocations: 367.1 kB / 0.5643 GB, free: 50.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004757/1.395, allocations: 1.23 MB / 0.5655 GB, free: 50.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/1.395, allocations: 6.875 kB / 0.5655 GB, free: 50.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.395, allocations: 0 / 0.5655 GB, free: 50.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/1.395, allocations: 3.844 kB / 0.5655 GB, free: 50.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00512/1.401, allocations: 2.13 MB / 0.5676 GB, free: 50.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001396/1.401, allocations: 73.48 kB / 0.5677 GB, free: 50.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/1.401, allocations: 67.48 kB / 0.5678 GB, free: 50.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006859/1.402, allocations: 275.2 kB / 0.568 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-05/1.402, allocations: 25.47 kB / 0.568 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/1.403, allocations: 0.8642 MB / 0.5689 GB, free: 49.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.403, allocations: 0 / 0.5689 GB, free: 49.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/1.405, allocations: 1.136 MB / 0.57 GB, free: 49.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.407, allocations: 478.7 kB / 0.5705 GB, free: 48.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004906/1.407, allocations: 15.11 kB / 0.5705 GB, free: 48.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/1.408, allocations: 41.05 kB / 0.5705 GB, free: 48.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/1.409, allocations: 72.48 kB / 0.5706 GB, free: 48.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/1.409, allocations: 33.38 kB / 0.5706 GB, free: 48.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003391/1.412, allocations: 1.768 MB / 0.5723 GB, free: 48.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.412, allocations: 0 / 0.5723 GB, free: 48.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002466/1.415, allocations: 0.6175 MB / 0.5729 GB, free: 48.7 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.004188/1.419, allocations: 2.672 MB / 0.5756 GB, free: 47.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/1.421, allocations: 0.7421 MB / 0.5763 GB, free: 47.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.421, allocations: 0 / 0.5763 GB, free: 47.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009683/1.422, allocations: 446.4 kB / 0.5767 GB, free: 47.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00264/1.425, allocations: 462.4 kB / 0.5771 GB, free: 47.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00848/1.433, allocations: 3.258 MB / 0.5803 GB, free: 46.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/1.434, allocations: 1.669 MB / 0.582 GB, free: 45.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001863/1.436, allocations: 343.4 kB / 0.5823 GB, free: 45.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001576/1.438, allocations: 1.122 MB / 0.5834 GB, free: 45.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/1.438, allocations: 0 / 0.5834 GB, free: 45.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1426/1.58, allocations: 58.2 MB / 0.6402 GB, free: 15.56 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.581, allocations: 172.9 kB / 0.6404 GB, free: 15.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.775/7.356, allocations: 0 / 0.6404 GB, free: 15.33 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat