Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.898e-05, allocations: 0 / 292.2 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.41 MB / 342.6 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4901/0.6031, allocations: 104.5 MB / 447.1 MB, free: 5.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.6035, allocations: 73.14 kB / 447.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7549/1.358, allocations: 139.3 MB / 0.5727 GB, free: 101.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.358, allocations: 6.406 kB / 0.5727 GB, free: 101.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.086e-05/1.359, allocations: 42.34 kB / 0.5728 GB, free: 101.7 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.007213/1.366, allocations: 2.631 MB / 0.5753 GB, free: 100.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/1.366, allocations: 13.31 kB / 0.5754 GB, free: 100.1 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002273/1.366, allocations: 93.42 kB / 0.5754 GB, free: 100 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006662/1.367, allocations: 383.4 kB / 0.5758 GB, free: 99.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005544/1.372, allocations: 2.231 MB / 0.578 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.322e-05/1.372, allocations: 39.8 kB / 0.578 GB, free: 98.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/1.373, allocations: 54.03 kB / 0.5781 GB, free: 98.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/1.374, allocations: 0.7873 MB / 0.5788 GB, free: 98.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/1.374, allocations: 3.938 kB / 0.5789 GB, free: 98.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/1.375, allocations: 23.34 kB / 0.5789 GB, free: 98.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.73e-05/1.375, allocations: 21.28 kB / 0.5789 GB, free: 98.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/1.376, allocations: 0.6948 MB / 0.5796 GB, free: 98.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00777/1.384, allocations: 3.031 MB / 0.5825 GB, free: 96.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/1.385, allocations: 0.6392 MB / 0.5832 GB, free: 96.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/1.387, allocations: 0.8891 MB / 0.584 GB, free: 96.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0458/1.433, allocations: 35.87 MB / 0.6191 GB, free: 64.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/1.434, allocations: 0.512 MB / 0.6196 GB, free: 63.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.268e-06/1.434, allocations: 0 / 0.6196 GB, free: 63.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01006/1.444, allocations: 3.469 MB / 0.6229 GB, free: 60.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.586e-05/1.444, allocations: 275 kB / 0.6232 GB, free: 59.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003917/1.448, allocations: 2.205 MB / 0.6254 GB, free: 57.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/1.448, allocations: 49.7 kB / 0.6254 GB, free: 57.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/1.45, allocations: 1.301 MB / 0.6267 GB, free: 56.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003482/1.45, allocations: 338.7 kB / 0.627 GB, free: 55.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/1.45, allocations: 20 kB / 0.627 GB, free: 55.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/1.45, allocations: 349.9 kB / 0.6274 GB, free: 55.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008794/1.451, allocations: 326.2 kB / 0.6277 GB, free: 55.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009906/1.452, allocations: 0.5424 MB / 0.6282 GB, free: 54.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009119/1.453, allocations: 384.2 kB / 0.6286 GB, free: 54.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.453, allocations: 4 kB / 0.6286 GB, free: 54.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003802/1.457, allocations: 1.67 MB / 0.6302 GB, free: 52.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/1.457, allocations: 8 kB / 0.6302 GB, free: 52.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/1.457, allocations: 116.5 kB / 0.6303 GB, free: 52.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/1.458, allocations: 263.9 kB / 0.6306 GB, free: 51.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/1.46, allocations: 243.7 kB / 0.6308 GB, free: 51.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/1.472, allocations: 13.21 MB / 0.6437 GB, free: 37.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00459/1.476, allocations: 127.9 kB / 0.6438 GB, free: 37.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000358/1.477, allocations: 59.94 kB / 0.6439 GB, free: 36.99 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000471/1.477, allocations: 172.7 kB / 0.644 GB, free: 36.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.478, allocations: 367.6 kB / 0.6444 GB, free: 36.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00707/1.485, allocations: 1.958 MB / 0.6463 GB, free: 34.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/1.485, allocations: 8 kB / 0.6463 GB, free: 34.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.486, allocations: 4 kB / 0.6463 GB, free: 34.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/1.486, allocations: 3.984 kB / 0.6463 GB, free: 34.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/1.489, allocations: 1.539 MB / 0.6478 GB, free: 32.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002282/1.489, allocations: 112 kB / 0.6479 GB, free: 32.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/1.491, allocations: 171.8 kB / 0.6481 GB, free: 32.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/1.492, allocations: 263.7 kB / 0.6483 GB, free: 32.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/1.492, allocations: 39.98 kB / 0.6484 GB, free: 32.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008992/1.501, allocations: 13.22 MB / 0.6613 GB, free: 17.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.501, allocations: 32 / 0.6613 GB, free: 17.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004978/1.506, allocations: 2.106 MB / 0.6633 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/1.508, allocations: 0.4926 MB / 0.6638 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006834/1.508, allocations: 23.98 kB / 0.6639 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/1.51, allocations: 119.9 kB / 0.664 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004875/1.511, allocations: 140.5 kB / 0.6641 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/1.511, allocations: 55.97 kB / 0.6642 GB, free: 14.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003147/1.514, allocations: 1.697 MB / 0.6658 GB, free: 12.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.514, allocations: 4 kB / 0.6658 GB, free: 12.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002853/1.517, allocations: 0.7183 MB / 0.6665 GB, free: 12.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006671/1.524, allocations: 3.459 MB / 0.6699 GB, free: 8.848 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003631/1.528, allocations: 2.141 MB / 0.672 GB, free: 6.578 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.528, allocations: 0 / 0.672 GB, free: 6.578 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/1.53, allocations: 1.733 MB / 0.6737 GB, free: 4.727 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004255/1.534, allocations: 0.5704 MB / 0.6742 GB, free: 4.164 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/1.545, allocations: 4.038 MB / 0.6782 GB, free: 80 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/1.547, allocations: 1.719 MB / 0.6799 GB, free: 14.33 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003104/1.55, allocations: 344.4 kB / 0.6802 GB, free: 13.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002264/1.552, allocations: 1.144 MB / 0.6813 GB, free: 12.85 MB / 458.7 MB Notification: Performance of SimCode: time 2.364e-06/1.552, allocations: 4 kB / 0.6813 GB, free: 12.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5049/2.057, allocations: 62.02 MB / 0.7419 GB, free: 99.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/2.057, allocations: 158.9 kB / 0.742 GB, free: 99.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.416/8.473, allocations: 4 kB / 0.742 GB, free: 99.28 MB / 458.7 MB