Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.423e-05, allocations: 4 kB / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.09998, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4493/0.5494, allocations: 102.1 MB / 419.1 MB, free: 2.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.5497, allocations: 74.45 kB / 419.2 MB, free: 2.141 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7323/1.282, allocations: 123.2 MB / 0.5296 GB, free: 96.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.864e-06/1.282, allocations: 0 / 0.5296 GB, free: 96.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.846e-05/1.282, allocations: 39.12 kB / 0.5297 GB, free: 96.27 MB / 426.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.006424/1.289, allocations: 2.595 MB / 0.5322 GB, free: 94.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.289, allocations: 7.844 kB / 0.5322 GB, free: 94.95 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00025/1.289, allocations: 92.7 kB / 0.5323 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006456/1.29, allocations: 382.5 kB / 0.5327 GB, free: 94.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005386/1.295, allocations: 2.241 MB / 0.5349 GB, free: 94.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/1.295, allocations: 31.88 kB / 0.5349 GB, free: 94.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/1.295, allocations: 45.53 kB / 0.5349 GB, free: 94.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/1.297, allocations: 0.7517 MB / 0.5357 GB, free: 93.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/1.297, allocations: 0 / 0.5357 GB, free: 93.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/1.297, allocations: 21.75 kB / 0.5357 GB, free: 93.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.012e-05/1.297, allocations: 27.09 kB / 0.5357 GB, free: 93.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/1.298, allocations: 0.6797 MB / 0.5364 GB, free: 93.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007491/1.306, allocations: 2.931 MB / 0.5392 GB, free: 93.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/1.307, allocations: 0.5905 MB / 0.5398 GB, free: 93.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/1.308, allocations: 0.6046 MB / 0.5404 GB, free: 93.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04616/1.354, allocations: 36.06 MB / 0.5756 GB, free: 66.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/1.355, allocations: 313.9 kB / 0.5759 GB, free: 66.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/1.355, allocations: 0 / 0.5759 GB, free: 66.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002185/1.357, allocations: 0.8878 MB / 0.5768 GB, free: 66.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/1.358, allocations: 267.7 kB / 0.5771 GB, free: 66.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004331/1.362, allocations: 2.317 MB / 0.5793 GB, free: 65.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/1.362, allocations: 39.3 kB / 0.5794 GB, free: 65.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/1.364, allocations: 1.39 MB / 0.5807 GB, free: 65.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/1.364, allocations: 166.9 kB / 0.5809 GB, free: 65.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/1.364, allocations: 15.41 kB / 0.5809 GB, free: 65.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.034e-05/1.364, allocations: 336.3 kB / 0.5812 GB, free: 65.15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00052/1.365, allocations: 183.6 kB / 0.5814 GB, free: 65.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/1.365, allocations: 0.5842 MB / 0.5819 GB, free: 64.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000643/1.366, allocations: 280.6 kB / 0.5822 GB, free: 64.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/1.366, allocations: 3.219 kB / 0.5822 GB, free: 64.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002661/1.369, allocations: 1.137 MB / 0.5833 GB, free: 64.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/1.369, allocations: 14.31 kB / 0.5833 GB, free: 64.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/1.369, allocations: 85.09 kB / 0.5834 GB, free: 64.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008051/1.37, allocations: 275.4 kB / 0.5837 GB, free: 63.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/1.371, allocations: 191.5 kB / 0.5839 GB, free: 63.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/1.372, allocations: 0.8778 MB / 0.5847 GB, free: 63.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002165/1.374, allocations: 133.7 kB / 0.5849 GB, free: 63.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/1.375, allocations: 64.47 kB / 0.5849 GB, free: 63.29 MB / 426.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.000262/1.375, allocations: 158.8 kB / 0.5851 GB, free: 63.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006467/1.376, allocations: 364.7 kB / 0.5854 GB, free: 62.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004682/1.38, allocations: 1.22 MB / 0.5866 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/1.38, allocations: 3.375 kB / 0.5866 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.38, allocations: 1.938 kB / 0.5866 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/1.38, allocations: 3.891 kB / 0.5866 GB, free: 62.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00516/1.386, allocations: 2.127 MB / 0.5887 GB, free: 61.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001441/1.386, allocations: 69.41 kB / 0.5888 GB, free: 61.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000611/1.386, allocations: 72.25 kB / 0.5888 GB, free: 61.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007041/1.387, allocations: 263.5 kB / 0.5891 GB, free: 61.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.476e-05/1.387, allocations: 31.67 kB / 0.5891 GB, free: 61.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/1.388, allocations: 0.8544 MB / 0.5899 GB, free: 60.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.388, allocations: 3 kB / 0.5899 GB, free: 60.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/1.391, allocations: 1.146 MB / 0.5911 GB, free: 60.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.392, allocations: 474.9 kB / 0.5915 GB, free: 59.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007095/1.393, allocations: 14.34 kB / 0.5915 GB, free: 59.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/1.394, allocations: 49.05 kB / 0.5916 GB, free: 59.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/1.395, allocations: 65.28 kB / 0.5916 GB, free: 59.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.395, allocations: 36.38 kB / 0.5917 GB, free: 59.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003822/1.399, allocations: 1.767 MB / 0.5934 GB, free: 59.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.399, allocations: 3.906 kB / 0.5934 GB, free: 59.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002462/1.401, allocations: 0.6217 MB / 0.594 GB, free: 59.16 MB / 426.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.004126/1.405, allocations: 2.672 MB / 0.5966 GB, free: 57.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001996/1.407, allocations: 0.7292 MB / 0.5973 GB, free: 57.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.407, allocations: 4.625 kB / 0.5973 GB, free: 57.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/1.408, allocations: 439.7 kB / 0.5978 GB, free: 57.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/1.411, allocations: 466.5 kB / 0.5982 GB, free: 56.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009375/1.421, allocations: 3.251 MB / 0.6014 GB, free: 55.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/1.422, allocations: 1.663 MB / 0.603 GB, free: 54.85 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002085/1.424, allocations: 345 kB / 0.6033 GB, free: 54.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/1.426, allocations: 1.123 MB / 0.6044 GB, free: 53.74 MB / 426.7 MB Notification: Performance of SimCode: time 2.244e-06/1.426, allocations: 0 / 0.6044 GB, free: 53.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1403/1.566, allocations: 58.18 MB / 0.6612 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/1.567, allocations: 163.7 kB / 0.6614 GB, free: 384 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.273/6.839, allocations: 0 / 0.6614 GB, free: 384 kB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat