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 1.999/1.999, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.166e-05/2.177e-05, allocations: 8 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3687, allocations: 44.5 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1736/0.5424, allocations: 96.99 MB / 391.2 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.5427, allocations: 71.95 kB / 391.3 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6271/1.17, allocations: 117.8 MB / 0.4972 GB, free: 39.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.17, allocations: 3.938 kB / 0.4972 GB, free: 39.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.305e-05/1.17, allocations: 44 kB / 0.4972 GB, free: 39.61 MB / 362.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.007332/1.177, allocations: 2.588 MB / 0.4998 GB, free: 36.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/1.177, allocations: 8.031 kB / 0.4998 GB, free: 36.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/1.179, allocations: 375.5 kB / 0.5001 GB, free: 36.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007954/1.187, allocations: 2.236 MB / 0.5023 GB, free: 34.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.39e-05/1.187, allocations: 12 kB / 0.5023 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002818/1.187, allocations: 35.91 kB / 0.5024 GB, free: 34.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00214/1.189, allocations: 0.6626 MB / 0.503 GB, free: 33.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/1.191, allocations: 0.7011 MB / 0.5037 GB, free: 32.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/1.191, allocations: 4 kB / 0.5037 GB, free: 32.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.885e-05/1.191, allocations: 0 / 0.5037 GB, free: 32.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/1.191, allocations: 19.98 kB / 0.5037 GB, free: 32.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007265/1.199, allocations: 2.814 MB / 0.5065 GB, free: 29.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009715/1.2, allocations: 0.5677 MB / 0.507 GB, free: 29.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009393/1.201, allocations: 0.5783 MB / 0.5076 GB, free: 28.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04914/1.25, allocations: 36.06 MB / 0.5428 GB, free: 3.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/1.251, allocations: 309.3 kB / 0.5431 GB, free: 3.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 4.198e-06/1.251, allocations: 3.938 kB / 0.5431 GB, free: 3.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002684/1.253, allocations: 0.8587 MB / 0.5439 GB, free: 2.367 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/1.254, allocations: 265 kB / 0.5442 GB, free: 2.047 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004764/1.258, allocations: 2.104 MB / 0.5462 GB, free: 15.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/1.259, allocations: 33.64 kB / 0.5463 GB, free: 15.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002101/1.261, allocations: 1.383 MB / 0.5476 GB, free: 14.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003451/1.261, allocations: 157.8 kB / 0.5478 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/1.261, allocations: 0 / 0.5478 GB, free: 14.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/1.261, allocations: 345.9 kB / 0.5481 GB, free: 14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/1.262, allocations: 166.6 kB / 0.5483 GB, free: 13.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007886/1.263, allocations: 0.5702 MB / 0.5488 GB, free: 13.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007198/1.263, allocations: 255.7 kB / 0.5491 GB, free: 12.83 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/1.263, allocations: 7.953 kB / 0.5491 GB, free: 12.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002858/1.266, allocations: 1.084 MB / 0.5501 GB, free: 11.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/1.266, allocations: 8 kB / 0.5501 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002206/1.267, allocations: 84.86 kB / 0.5502 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/1.267, allocations: 284.6 kB / 0.5505 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.269, allocations: 175.7 kB / 0.5507 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/1.27, allocations: 0.9154 MB / 0.5516 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/1.272, allocations: 111 kB / 0.5517 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/1.273, allocations: 67.95 kB / 0.5517 GB, free: 10.06 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.0002711/1.273, allocations: 136.7 kB / 0.5519 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002296/1.275, allocations: 0.8687 MB / 0.5527 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000639/1.276, allocations: 363.6 kB / 0.553 GB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/1.281, allocations: 1.181 MB / 0.5542 GB, free: 7.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/1.281, allocations: 7.984 kB / 0.5542 GB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.281, allocations: 3.938 kB / 0.5542 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/1.281, allocations: 0 / 0.5542 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005309/1.286, allocations: 2.014 MB / 0.5562 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002086/1.286, allocations: 71.98 kB / 0.5562 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005959/1.287, allocations: 68.08 kB / 0.5563 GB, free: 5.258 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000786/1.288, allocations: 272.6 kB / 0.5566 GB, free: 4.988 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/1.288, allocations: 24 kB / 0.5566 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/1.289, allocations: 0.8957 MB / 0.5575 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.289, allocations: 4.031 kB / 0.5575 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/1.292, allocations: 1.117 MB / 0.5586 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.293, allocations: 468.5 kB / 0.559 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007515/1.294, allocations: 11.98 kB / 0.559 GB, free: 2.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/1.295, allocations: 39.97 kB / 0.5591 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/1.295, allocations: 67.86 kB / 0.5591 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.295, allocations: 36 kB / 0.5592 GB, free: 2.211 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003686/1.299, allocations: 1.563 MB / 0.5607 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.299, allocations: 0 / 0.5607 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002567/1.302, allocations: 0.5815 MB / 0.5613 GB, free: 64 kB / 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.272/1.574, allocations: 2.734 MB / 0.5639 GB, free: 89.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/1.576, allocations: 0.6983 MB / 0.5646 GB, free: 89.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.576, allocations: 0.9688 kB / 0.5646 GB, free: 89.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/1.577, allocations: 432.7 kB / 0.565 GB, free: 89.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/1.581, allocations: 461 kB / 0.5655 GB, free: 89.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009831/1.59, allocations: 3.207 MB / 0.5686 GB, free: 88.22 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/1.592, allocations: 1.674 MB / 0.5702 GB, free: 87.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002289/1.594, allocations: 338.9 kB / 0.5706 GB, free: 87.47 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/1.596, allocations: 1.12 MB / 0.5716 GB, free: 87.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.224e-06/1.597, allocations: 3.938 kB / 0.5716 GB, free: 87.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.144/1.74, allocations: 52.64 MB / 0.6231 GB, free: 68.32 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/1.741, allocations: 126.4 kB / 0.6232 GB, free: 68.13 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.506/7.247, allocations: 4 kB / 0.6232 GB, free: 68.13 MB / 394.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