Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.457e-05, allocations: 0 / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4654/0.5841, allocations: 97.86 MB / 397.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5845, allocations: 74.42 kB / 397.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4248/1.009, allocations: 123.9 MB / 0.5096 GB, free: 9.266 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.009, allocations: 0 / 0.5096 GB, free: 9.266 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.371e-05/1.009, allocations: 48 kB / 0.5096 GB, free: 9.219 MB / 410.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.007715/1.017, allocations: 2.644 MB / 0.5122 GB, free: 6.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/1.017, allocations: 12.03 kB / 0.5122 GB, free: 6.508 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003012/1.018, allocations: 98.5 kB / 0.5123 GB, free: 6.402 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008307/1.018, allocations: 387.3 kB / 0.5127 GB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006314/1.025, allocations: 2.252 MB / 0.5149 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/1.025, allocations: 37 kB / 0.5149 GB, free: 3.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/1.025, allocations: 51.91 kB / 0.515 GB, free: 3.609 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/1.027, allocations: 0.7813 MB / 0.5157 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.406e-05/1.027, allocations: 11.92 kB / 0.5158 GB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/1.027, allocations: 24 kB / 0.5158 GB, free: 2.758 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.505e-05/1.027, allocations: 19.98 kB / 0.5158 GB, free: 2.738 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/1.029, allocations: 0.6975 MB / 0.5165 GB, free: 2.039 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2931/1.323, allocations: 3.047 MB / 0.5195 GB, free: 79.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/1.325, allocations: 0.6387 MB / 0.5201 GB, free: 79.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/1.327, allocations: 0.884 MB / 0.5209 GB, free: 79.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05266/1.38, allocations: 35.97 MB / 0.5561 GB, free: 53.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/1.381, allocations: 0.5139 MB / 0.5566 GB, free: 53.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 5.259e-06/1.381, allocations: 0 / 0.5566 GB, free: 53.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01131/1.392, allocations: 3.481 MB / 0.56 GB, free: 51.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/1.392, allocations: 277.6 kB / 0.5602 GB, free: 51.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004934/1.397, allocations: 2.227 MB / 0.5624 GB, free: 51.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002653/1.398, allocations: 47.05 kB / 0.5625 GB, free: 51.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/1.399, allocations: 1.3 MB / 0.5637 GB, free: 51.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005721/1.4, allocations: 333 kB / 0.564 GB, free: 50.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/1.4, allocations: 19.03 kB / 0.5641 GB, free: 50.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.943e-05/1.4, allocations: 345.6 kB / 0.5644 GB, free: 50.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000904/1.401, allocations: 324.3 kB / 0.5647 GB, free: 50.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/1.402, allocations: 0.545 MB / 0.5652 GB, free: 50.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/1.403, allocations: 387.5 kB / 0.5656 GB, free: 50.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/1.403, allocations: 0 / 0.5656 GB, free: 50.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004356/1.407, allocations: 1.673 MB / 0.5672 GB, free: 49.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/1.408, allocations: 8.031 kB / 0.5672 GB, free: 49.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002681/1.408, allocations: 125.7 kB / 0.5674 GB, free: 49.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/1.409, allocations: 262 kB / 0.5676 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/1.411, allocations: 238.1 kB / 0.5678 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009991/1.421, allocations: 13.22 MB / 0.5808 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/1.424, allocations: 121.8 kB / 0.5809 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/1.425, allocations: 57.31 kB / 0.5809 GB, free: 37.27 MB / 410.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.0003991/1.425, allocations: 178.3 kB / 0.5811 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008339/1.426, allocations: 375.1 kB / 0.5814 GB, free: 36.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006975/1.433, allocations: 1.962 MB / 0.5834 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/1.433, allocations: 10.31 kB / 0.5834 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/1.433, allocations: 3.438 kB / 0.5834 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/1.433, allocations: 3.891 kB / 0.5834 GB, free: 36.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003572/1.437, allocations: 1.548 MB / 0.5849 GB, free: 36.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002823/1.437, allocations: 117 kB / 0.585 GB, free: 36.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00144/1.439, allocations: 172.9 kB / 0.5852 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/1.44, allocations: 256.3 kB / 0.5854 GB, free: 36.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002613/1.44, allocations: 43.16 kB / 0.5855 GB, free: 36.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.451, allocations: 13.21 MB / 0.5984 GB, free: 39.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/1.451, allocations: 0 / 0.5984 GB, free: 39.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005204/1.456, allocations: 2.109 MB / 0.6004 GB, free: 39.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/1.458, allocations: 0.4992 MB / 0.6009 GB, free: 38.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008074/1.459, allocations: 20.47 kB / 0.6009 GB, free: 38.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.461, allocations: 118.8 kB / 0.601 GB, free: 38.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005968/1.462, allocations: 144.9 kB / 0.6012 GB, free: 38.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/1.462, allocations: 57.08 kB / 0.6012 GB, free: 38.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003931/1.466, allocations: 1.714 MB / 0.6029 GB, free: 38.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.332e-06/1.466, allocations: 0 / 0.6029 GB, free: 38.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003054/1.469, allocations: 0.7062 MB / 0.6036 GB, free: 38.67 MB / 426.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.007763/1.477, allocations: 3.478 MB / 0.607 GB, free: 37.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00447/1.481, allocations: 2.139 MB / 0.6091 GB, free: 36.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/1.481, allocations: 3.844 kB / 0.6091 GB, free: 36.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/1.484, allocations: 1.73 MB / 0.6108 GB, free: 35.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/1.488, allocations: 475.6 kB / 0.6112 GB, free: 35.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/1.499, allocations: 4.06 MB / 0.6152 GB, free: 34.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/1.501, allocations: 1.723 MB / 0.6169 GB, free: 33.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002127/1.503, allocations: 342.8 kB / 0.6172 GB, free: 33.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/1.505, allocations: 1.149 MB / 0.6183 GB, free: 33.38 MB / 426.7 MB Notification: Performance of SimCode: time 1.442e-06/1.505, allocations: 0 / 0.6183 GB, free: 33.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4497/1.954, allocations: 62.27 MB / 0.6791 GB, free: 86.35 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/1.955, allocations: 169.3 kB / 0.6793 GB, free: 86.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.566/8.521, allocations: 0 / 0.6793 GB, free: 86.12 MB / 426.7 MB