Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.11/2.11, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.429e-05/3.444e-05, allocations: 3.281 kB / 249.8 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.09987, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4614/0.5614, allocations: 96.99 MB / 391.3 MB, free: 3.043 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.5617, allocations: 74.67 kB / 391.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7463/1.308, allocations: 117.8 MB / 0.4973 GB, free: 76.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.308, allocations: 5.938 kB / 0.4973 GB, free: 76.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001088/1.308, allocations: 41.84 kB / 0.4973 GB, free: 76.75 MB / 394.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.008164/1.316, allocations: 2.591 MB / 0.4998 GB, free: 75.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/1.316, allocations: 9.625 kB / 0.4998 GB, free: 75.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/1.318, allocations: 378 kB / 0.5002 GB, free: 75.44 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006915/1.325, allocations: 2.232 MB / 0.5024 GB, free: 74.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/1.325, allocations: 13.75 kB / 0.5024 GB, free: 74.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/1.325, allocations: 38.19 kB / 0.5024 GB, free: 74.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001845/1.327, allocations: 0.6591 MB / 0.5031 GB, free: 74.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/1.329, allocations: 0.6965 MB / 0.5038 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/1.329, allocations: 0 / 0.5038 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/1.329, allocations: 4.625 kB / 0.5038 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/1.329, allocations: 23.2 kB / 0.5038 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008817/1.338, allocations: 2.82 MB / 0.5065 GB, free: 74.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/1.339, allocations: 0.5678 MB / 0.5071 GB, free: 74.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/1.34, allocations: 0.5802 MB / 0.5077 GB, free: 74.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05014/1.39, allocations: 36.05 MB / 0.5429 GB, free: 47.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006963/1.391, allocations: 307.9 kB / 0.5432 GB, free: 47.67 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 4.349e-06/1.391, allocations: 3.938 kB / 0.5432 GB, free: 47.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002622/1.393, allocations: 0.8604 MB / 0.544 GB, free: 47.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/1.394, allocations: 269.9 kB / 0.5443 GB, free: 47.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004507/1.398, allocations: 2.1 MB / 0.5463 GB, free: 46.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/1.398, allocations: 29.58 kB / 0.5463 GB, free: 46.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/1.4, allocations: 1.392 MB / 0.5477 GB, free: 46.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/1.4, allocations: 159.5 kB / 0.5478 GB, free: 46.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/1.4, allocations: 0 / 0.5478 GB, free: 46.47 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/1.401, allocations: 335.2 kB / 0.5482 GB, free: 46.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/1.401, allocations: 168.5 kB / 0.5483 GB, free: 46.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007129/1.402, allocations: 0.5648 MB / 0.5489 GB, free: 45.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007402/1.403, allocations: 256.5 kB / 0.5491 GB, free: 45.65 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/1.403, allocations: 7.297 kB / 0.5491 GB, free: 45.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003007/1.406, allocations: 1.083 MB / 0.5502 GB, free: 45.42 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/1.406, allocations: 10.88 kB / 0.5502 GB, free: 45.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002271/1.406, allocations: 87.7 kB / 0.5503 GB, free: 45.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/1.407, allocations: 275.6 kB / 0.5505 GB, free: 45.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/1.408, allocations: 173.6 kB / 0.5507 GB, free: 45.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/1.41, allocations: 0.9161 MB / 0.5516 GB, free: 44.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/1.412, allocations: 111.6 kB / 0.5517 GB, free: 44.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/1.412, allocations: 70.66 kB / 0.5518 GB, free: 44.84 MB / 394.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.0002885/1.412, allocations: 138.1 kB / 0.5519 GB, free: 44.72 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002439/1.415, allocations: 0.8708 MB / 0.5528 GB, free: 44.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/1.416, allocations: 366.2 kB / 0.5531 GB, free: 44.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/1.421, allocations: 1.181 MB / 0.5543 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/1.421, allocations: 2.562 kB / 0.5543 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/1.421, allocations: 3.969 kB / 0.5543 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/1.421, allocations: 3.75 kB / 0.5543 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/1.427, allocations: 2.02 MB / 0.5562 GB, free: 43.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002055/1.427, allocations: 70.02 kB / 0.5563 GB, free: 43.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000684/1.428, allocations: 72 kB / 0.5564 GB, free: 43.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007526/1.428, allocations: 259.3 kB / 0.5566 GB, free: 43.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/1.428, allocations: 32.25 kB / 0.5567 GB, free: 43.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/1.43, allocations: 0.9068 MB / 0.5575 GB, free: 43.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/1.43, allocations: 0 / 0.5575 GB, free: 43.28 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/1.433, allocations: 1.118 MB / 0.5586 GB, free: 42.74 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/1.434, allocations: 466.6 kB / 0.5591 GB, free: 42.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008778/1.435, allocations: 9.719 kB / 0.5591 GB, free: 42.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/1.437, allocations: 39.28 kB / 0.5591 GB, free: 42.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/1.437, allocations: 60.73 kB / 0.5592 GB, free: 42.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/1.437, allocations: 39.45 kB / 0.5592 GB, free: 42.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003782/1.441, allocations: 1.563 MB / 0.5607 GB, free: 42.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.041e-06/1.441, allocations: 0 / 0.5607 GB, free: 42.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002976/1.444, allocations: 0.5827 MB / 0.5613 GB, free: 42.21 MB / 394.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.004792/1.449, allocations: 2.753 MB / 0.564 GB, free: 40.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002094/1.451, allocations: 0.7009 MB / 0.5647 GB, free: 40.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/1.451, allocations: 0 / 0.5647 GB, free: 40.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/1.452, allocations: 442.6 kB / 0.5651 GB, free: 40.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/1.455, allocations: 458 kB / 0.5655 GB, free: 40.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.466, allocations: 3.195 MB / 0.5687 GB, free: 39.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/1.467, allocations: 1.666 MB / 0.5703 GB, free: 38.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002278/1.469, allocations: 337.1 kB / 0.5706 GB, free: 38.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/1.471, allocations: 1.131 MB / 0.5717 GB, free: 38.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/1.471, allocations: 0 / 0.5717 GB, free: 38.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.165/1.637, allocations: 52.64 MB / 0.6231 GB, free: 400 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002388/1.637, allocations: 143.2 kB / 0.6233 GB, free: 192 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.014/7.651, allocations: 0 / 0.6233 GB, free: 192 kB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat