Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.854/1.854, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.867e-05/3.87e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2629, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.4286, allocations: 93.85 MB / 357.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.429, allocations: 67.97 kB / 357.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6658/1.095, allocations: 125.1 MB / 482.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.095, allocations: 4 kB / 482.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.567e-05/1.095, allocations: 40 kB / 482.9 MB, free: 5.668 MB / 330.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.007552/1.103, allocations: 2.588 MB / 485.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/1.103, allocations: 20.02 kB / 485.5 MB, free: 3 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000303/1.103, allocations: 90.52 kB / 485.6 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008581/1.104, allocations: 379.4 kB / 486 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006518/1.11, allocations: 2.228 MB / 488.2 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/1.11, allocations: 36.95 kB / 488.3 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/1.111, allocations: 51.84 kB / 488.3 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/1.113, allocations: 0.754 MB / 489.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/1.113, allocations: 0 / 489.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/1.113, allocations: 23.98 kB / 489.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.633e-05/1.113, allocations: 20 kB / 489.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/1.115, allocations: 0.6779 MB / 489.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008979/1.124, allocations: 2.947 MB / 492.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/1.125, allocations: 0.588 MB / 493.3 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/1.126, allocations: 0.6017 MB / 493.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2986/1.425, allocations: 36.06 MB / 0.5176 GB, free: 40.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006879/1.426, allocations: 304.8 kB / 0.5179 GB, free: 40.76 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.348e-06/1.426, allocations: 0 / 0.5179 GB, free: 40.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002288/1.428, allocations: 0.8943 MB / 0.5187 GB, free: 40.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/1.428, allocations: 266.7 kB / 0.519 GB, free: 40.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004442/1.433, allocations: 2.313 MB / 0.5212 GB, free: 39.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001595/1.433, allocations: 41.05 kB / 0.5213 GB, free: 39.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/1.434, allocations: 1.397 MB / 0.5226 GB, free: 39.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/1.435, allocations: 161.8 kB / 0.5228 GB, free: 39.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/1.435, allocations: 12.84 kB / 0.5228 GB, free: 39.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.639e-05/1.435, allocations: 348.6 kB / 0.5231 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005118/1.435, allocations: 183.8 kB / 0.5233 GB, free: 39.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/1.436, allocations: 0.5779 MB / 0.5239 GB, free: 38.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000671/1.437, allocations: 283.3 kB / 0.5241 GB, free: 38.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/1.437, allocations: 3.906 kB / 0.5242 GB, free: 38.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002746/1.44, allocations: 1.141 MB / 0.5253 GB, free: 38.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/1.44, allocations: 10.47 kB / 0.5253 GB, free: 38.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.44, allocations: 85.25 kB / 0.5254 GB, free: 38.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000827/1.441, allocations: 280.1 kB / 0.5256 GB, free: 38.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.442, allocations: 183 kB / 0.5258 GB, free: 38.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/1.443, allocations: 0.8749 MB / 0.5267 GB, free: 38.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/1.446, allocations: 134.1 kB / 0.5268 GB, free: 38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00024/1.446, allocations: 61.16 kB / 0.5268 GB, free: 38 MB / 346.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.0002714/1.446, allocations: 166.7 kB / 0.527 GB, free: 37.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007152/1.447, allocations: 371.2 kB / 0.5274 GB, free: 37.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004696/1.452, allocations: 1.221 MB / 0.5285 GB, free: 37.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.612e-05/1.452, allocations: 3.969 kB / 0.5285 GB, free: 37.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/1.452, allocations: 0 / 0.5285 GB, free: 37.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/1.452, allocations: 0 / 0.5285 GB, free: 37.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/1.457, allocations: 2.12 MB / 0.5306 GB, free: 37.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001415/1.457, allocations: 73.11 kB / 0.5307 GB, free: 37.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006208/1.458, allocations: 74.28 kB / 0.5308 GB, free: 37.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000723/1.459, allocations: 261.5 kB / 0.531 GB, free: 37.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/1.459, allocations: 30.22 kB / 0.531 GB, free: 37.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/1.46, allocations: 0.8557 MB / 0.5319 GB, free: 36.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.46, allocations: 6.031 kB / 0.5319 GB, free: 36.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/1.462, allocations: 1.139 MB / 0.533 GB, free: 36.13 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/1.464, allocations: 469.9 kB / 0.5334 GB, free: 35.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007105/1.464, allocations: 22.33 kB / 0.5335 GB, free: 35.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.466, allocations: 48.08 kB / 0.5335 GB, free: 35.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/1.466, allocations: 70.09 kB / 0.5336 GB, free: 35.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/1.466, allocations: 37.03 kB / 0.5336 GB, free: 35.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00375/1.47, allocations: 1.768 MB / 0.5353 GB, free: 35.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.47, allocations: 0 / 0.5353 GB, free: 35.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00264/1.473, allocations: 0.6245 MB / 0.5359 GB, free: 35.64 MB / 346.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.004394/1.477, allocations: 2.676 MB / 0.5386 GB, free: 34.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/1.479, allocations: 0.7224 MB / 0.5393 GB, free: 34.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.479, allocations: 1.594 kB / 0.5393 GB, free: 34.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/1.48, allocations: 443.5 kB / 0.5397 GB, free: 34.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/1.483, allocations: 466.5 kB / 0.5401 GB, free: 34.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009423/1.493, allocations: 3.252 MB / 0.5433 GB, free: 33.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/1.494, allocations: 1.663 MB / 0.5449 GB, free: 32.36 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002113/1.496, allocations: 343.2 kB / 0.5453 GB, free: 32.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/1.498, allocations: 1.123 MB / 0.5464 GB, free: 32.33 MB / 346.7 MB Notification: Performance of SimCode: time 1.502e-06/1.498, allocations: 3.781 kB / 0.5464 GB, free: 32.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1455/1.644, allocations: 58.17 MB / 0.6032 GB, free: 8.598 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000362/1.644, allocations: 179 kB / 0.6033 GB, free: 8.363 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.677/7.321, allocations: 4 kB / 0.6033 GB, free: 8.359 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat