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.986/1.986, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.257e-05, allocations: 0 / 255.4 MB, free: 2.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09513, allocations: 44.51 MB / 300 MB, free: 6.094 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.5352, allocations: 97.85 MB / 397.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.5356, allocations: 71.98 kB / 397.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4338/0.9693, allocations: 123.9 MB / 0.5096 GB, free: 9.469 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.9694, allocations: 0 / 0.5096 GB, free: 9.469 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.487e-05/0.9695, allocations: 40 kB / 0.5096 GB, free: 9.43 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.008182/0.9777, allocations: 2.648 MB / 0.5122 GB, free: 6.727 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/0.9778, allocations: 8.031 kB / 0.5122 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003607/0.9782, allocations: 102.5 kB / 0.5123 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009254/0.9791, allocations: 379.4 kB / 0.5127 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007065/0.9862, allocations: 2.256 MB / 0.5149 GB, free: 3.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.9863, allocations: 33 kB / 0.5149 GB, free: 3.875 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002531/0.9865, allocations: 59.83 kB / 0.515 GB, free: 3.816 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/0.9888, allocations: 0.791 MB / 0.5157 GB, free: 2.988 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.9889, allocations: 3.953 kB / 0.5157 GB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.989, allocations: 16 kB / 0.5157 GB, free: 2.969 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.876e-05/0.9891, allocations: 19.98 kB / 0.5158 GB, free: 2.949 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.991, allocations: 0.7072 MB / 0.5165 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3076/1.299, allocations: 3.044 MB / 0.5194 GB, free: 80.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/1.301, allocations: 0.6488 MB / 0.5201 GB, free: 80 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/1.303, allocations: 0.8844 MB / 0.5209 GB, free: 79.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0517/1.354, allocations: 35.98 MB / 0.5561 GB, free: 53.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/1.356, allocations: 0.5256 MB / 0.5566 GB, free: 53.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.769e-06/1.356, allocations: 0 / 0.5566 GB, free: 53.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01084/1.367, allocations: 3.475 MB / 0.56 GB, free: 52.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/1.367, allocations: 279.3 kB / 0.5602 GB, free: 52.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004944/1.372, allocations: 2.216 MB / 0.5624 GB, free: 51.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/1.372, allocations: 55.08 kB / 0.5624 GB, free: 51.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.374, allocations: 1.3 MB / 0.5637 GB, free: 51.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005461/1.374, allocations: 336 kB / 0.564 GB, free: 51.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/1.375, allocations: 22.03 kB / 0.5641 GB, free: 51.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/1.375, allocations: 345.5 kB / 0.5644 GB, free: 51.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009282/1.376, allocations: 327.1 kB / 0.5647 GB, free: 51.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/1.377, allocations: 0.5467 MB / 0.5652 GB, free: 51.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/1.378, allocations: 384.6 kB / 0.5656 GB, free: 51.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/1.378, allocations: 3.5 kB / 0.5656 GB, free: 51.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004658/1.382, allocations: 1.68 MB / 0.5672 GB, free: 50.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/1.383, allocations: 7.375 kB / 0.5673 GB, free: 50.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002791/1.383, allocations: 125.7 kB / 0.5674 GB, free: 50.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/1.384, allocations: 261.5 kB / 0.5676 GB, free: 50.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/1.386, allocations: 233.4 kB / 0.5678 GB, free: 50.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009955/1.396, allocations: 13.23 MB / 0.5808 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/1.399, allocations: 129.5 kB / 0.5809 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003272/1.399, allocations: 58.81 kB / 0.5809 GB, free: 37.9 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.0003926/1.399, allocations: 177.5 kB / 0.5811 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008322/1.4, allocations: 379.5 kB / 0.5815 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006941/1.407, allocations: 1.961 MB / 0.5834 GB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/1.407, allocations: 7.281 kB / 0.5834 GB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/1.407, allocations: 7.203 kB / 0.5834 GB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/1.407, allocations: 7.75 kB / 0.5834 GB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/1.411, allocations: 1.535 MB / 0.5849 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002823/1.411, allocations: 121.8 kB / 0.585 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/1.413, allocations: 168.7 kB / 0.5852 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/1.414, allocations: 270.9 kB / 0.5854 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002626/1.414, allocations: 40.73 kB / 0.5855 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01059/1.425, allocations: 13.23 MB / 0.5984 GB, free: 40.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.425, allocations: 0 / 0.5984 GB, free: 40.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/1.43, allocations: 2.099 MB / 0.6005 GB, free: 39.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.432, allocations: 0.4974 MB / 0.6009 GB, free: 39.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008076/1.433, allocations: 24.3 kB / 0.601 GB, free: 39.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/1.435, allocations: 118 kB / 0.6011 GB, free: 39.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007032/1.436, allocations: 141.2 kB / 0.6012 GB, free: 39.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001864/1.436, allocations: 58.33 kB / 0.6013 GB, free: 39.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004185/1.44, allocations: 1.711 MB / 0.6029 GB, free: 39.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.44, allocations: 6.562 kB / 0.6029 GB, free: 39.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00323/1.443, allocations: 0.713 MB / 0.6036 GB, free: 39.3 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.007911/1.451, allocations: 3.481 MB / 0.607 GB, free: 38.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004318/1.456, allocations: 2.216 MB / 0.6092 GB, free: 36.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/1.456, allocations: 3.906 kB / 0.6092 GB, free: 36.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003004/1.459, allocations: 1.795 MB / 0.611 GB, free: 35.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/1.462, allocations: 481 kB / 0.6114 GB, free: 35.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/1.474, allocations: 4.053 MB / 0.6154 GB, free: 34.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.476, allocations: 1.723 MB / 0.6171 GB, free: 33.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002399/1.478, allocations: 343.4 kB / 0.6174 GB, free: 33.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002068/1.481, allocations: 1.147 MB / 0.6185 GB, free: 33.78 MB / 426.7 MB Notification: Performance of SimCode: time 1.283e-06/1.481, allocations: 0 / 0.6185 GB, free: 33.78 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4888/1.969, allocations: 62.38 MB / 0.6794 GB, free: 87.02 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/1.97, allocations: 164.5 kB / 0.6796 GB, free: 86.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.21/8.18, allocations: 0 / 0.6796 GB, free: 86.8 MB / 426.7 MB