Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.028/2.028, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.301e-05/4.323e-05, allocations: 4 kB / 292.7 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 50.41 MB / 343.2 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4953/0.609, allocations: 104.3 MB / 447.4 MB, free: 5.816 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.6093, allocations: 70.33 kB / 447.5 MB, free: 5.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8001/1.409, allocations: 138.4 MB / 0.5722 GB, free: 102.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.409, allocations: 4 kB / 0.5722 GB, free: 102.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.734e-05/1.41, allocations: 39.28 kB / 0.5722 GB, free: 102.1 MB / 442.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.006365/1.416, allocations: 2.583 MB / 0.5748 GB, free: 100.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/1.416, allocations: 10.62 kB / 0.5748 GB, free: 100.5 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003247/1.416, allocations: 95.56 kB / 0.5749 GB, free: 100.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008065/1.417, allocations: 380.7 kB / 0.5752 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/1.423, allocations: 2.217 MB / 0.5774 GB, free: 99.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/1.423, allocations: 32.19 kB / 0.5774 GB, free: 99.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/1.423, allocations: 50.89 kB / 0.5775 GB, free: 99.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/1.426, allocations: 0.7539 MB / 0.5782 GB, free: 98.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/1.426, allocations: 0 / 0.5782 GB, free: 98.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/1.426, allocations: 19.28 kB / 0.5782 GB, free: 98.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/1.426, allocations: 18.47 kB / 0.5782 GB, free: 98.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002968/1.429, allocations: 0.677 MB / 0.5789 GB, free: 98.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01297/1.442, allocations: 2.928 MB / 0.5818 GB, free: 97.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/1.444, allocations: 0.5953 MB / 0.5823 GB, free: 96.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/1.446, allocations: 0.5901 MB / 0.5829 GB, free: 96.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06911/1.515, allocations: 35.97 MB / 0.618 GB, free: 65.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/1.516, allocations: 313.5 kB / 0.6183 GB, free: 65.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 6.062e-06/1.516, allocations: 0 / 0.6183 GB, free: 65.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.003241/1.52, allocations: 0.8767 MB / 0.6192 GB, free: 64.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/1.52, allocations: 281 kB / 0.6195 GB, free: 64.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00643/1.526, allocations: 2.297 MB / 0.6217 GB, free: 62.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/1.526, allocations: 37.7 kB / 0.6217 GB, free: 61.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002277/1.529, allocations: 1.39 MB / 0.6231 GB, free: 60.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003869/1.529, allocations: 160.5 kB / 0.6232 GB, free: 60.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/1.529, allocations: 16 kB / 0.6233 GB, free: 60.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/1.529, allocations: 338 kB / 0.6236 GB, free: 60.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007868/1.53, allocations: 186 kB / 0.6238 GB, free: 59.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/1.531, allocations: 0.5705 MB / 0.6243 GB, free: 59.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009559/1.532, allocations: 281.2 kB / 0.6246 GB, free: 58.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.532, allocations: 8 kB / 0.6246 GB, free: 58.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003897/1.536, allocations: 1.143 MB / 0.6257 GB, free: 57.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.783e-05/1.536, allocations: 12 kB / 0.6257 GB, free: 57.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002166/1.537, allocations: 79.98 kB / 0.6258 GB, free: 57.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/1.538, allocations: 273.1 kB / 0.6261 GB, free: 57.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/1.539, allocations: 179.7 kB / 0.6262 GB, free: 57.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/1.541, allocations: 0.8794 MB / 0.6271 GB, free: 56.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003214/1.544, allocations: 122.9 kB / 0.6272 GB, free: 56.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/1.545, allocations: 72.05 kB / 0.6273 GB, free: 56.08 MB / 442.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.0003572/1.545, allocations: 165.9 kB / 0.6274 GB, free: 55.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008191/1.546, allocations: 363.7 kB / 0.6278 GB, free: 55.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006992/1.553, allocations: 1.213 MB / 0.629 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/1.553, allocations: 11.94 kB / 0.629 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.553, allocations: 0 / 0.629 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/1.553, allocations: 0 / 0.629 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007179/1.56, allocations: 2.124 MB / 0.6311 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001998/1.561, allocations: 75.98 kB / 0.6311 GB, free: 52.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008943/1.561, allocations: 67.94 kB / 0.6312 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/1.563, allocations: 252.9 kB / 0.6314 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.852e-05/1.563, allocations: 39.98 kB / 0.6315 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/1.564, allocations: 0.8564 MB / 0.6323 GB, free: 50.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.564, allocations: 0 / 0.6323 GB, free: 50.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/1.566, allocations: 1.139 MB / 0.6334 GB, free: 49.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/1.567, allocations: 472.5 kB / 0.6339 GB, free: 49.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/1.568, allocations: 11.95 kB / 0.6339 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/1.569, allocations: 51.95 kB / 0.6339 GB, free: 49.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/1.57, allocations: 55.94 kB / 0.634 GB, free: 49.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/1.57, allocations: 43.98 kB / 0.634 GB, free: 48.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003282/1.573, allocations: 1.752 MB / 0.6357 GB, free: 47.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.573, allocations: 7.938 kB / 0.6357 GB, free: 47.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002423/1.575, allocations: 0.6166 MB / 0.6363 GB, free: 46.58 MB / 442.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.003726/1.579, allocations: 2.655 MB / 0.6389 GB, free: 44.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001792/1.581, allocations: 0.7211 MB / 0.6396 GB, free: 43.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/1.581, allocations: 0 / 0.6396 GB, free: 43.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009238/1.582, allocations: 443.7 kB / 0.6401 GB, free: 42.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004129/1.586, allocations: 0.5553 MB / 0.6406 GB, free: 42.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008417/1.595, allocations: 3.226 MB / 0.6438 GB, free: 39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/1.596, allocations: 1.658 MB / 0.6454 GB, free: 37.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001915/1.598, allocations: 341.8 kB / 0.6457 GB, free: 36.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/1.599, allocations: 1.116 MB / 0.6468 GB, free: 35.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.293e-06/1.599, allocations: 0 / 0.6468 GB, free: 35.87 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4528/2.052, allocations: 57.91 MB / 0.7033 GB, free: 109.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002508/2.052, allocations: 166 kB / 0.7035 GB, free: 108.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.661/7.713, allocations: 4 kB / 0.7035 GB, free: 108.9 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat