Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.96e-05, allocations: 0 / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.267, allocations: 38.77 MB / 263.9 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.4322, allocations: 94.04 MB / 357.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4325, allocations: 71.95 kB / 358 MB, free: 11.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6528/1.085, allocations: 126 MB / 484 MB, free: 4.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.085, allocations: 0 / 484 MB, free: 4.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.031e-05/1.085, allocations: 44 kB / 484 MB, free: 4.848 MB / 330.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.007999/1.094, allocations: 2.651 MB / 486.7 MB, free: 2.141 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/1.094, allocations: 12.03 kB / 486.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003938/1.094, allocations: 94.5 kB / 486.8 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008865/1.095, allocations: 384.3 kB / 487.1 MB, free: 1.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006815/1.102, allocations: 2.252 MB / 489.4 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/1.102, allocations: 37 kB / 489.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/1.102, allocations: 47.91 kB / 489.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/1.104, allocations: 0.7929 MB / 490.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/1.104, allocations: 4 kB / 490.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/1.104, allocations: 20 kB / 490.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/1.104, allocations: 19.98 kB / 490.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/1.107, allocations: 0.7014 MB / 491 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/1.122, allocations: 3.046 MB / 494.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002857/1.124, allocations: 0.6571 MB / 494.7 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/1.128, allocations: 0.8759 MB / 495.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3167/1.444, allocations: 35.96 MB / 0.5191 GB, free: 39.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/1.446, allocations: 0.5192 MB / 0.5196 GB, free: 39.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 5.31e-06/1.446, allocations: 0 / 0.5196 GB, free: 39.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01094/1.457, allocations: 3.475 MB / 0.523 GB, free: 38.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/1.457, allocations: 281.5 kB / 0.5233 GB, free: 38.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004503/1.461, allocations: 2.222 MB / 0.5254 GB, free: 37.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000258/1.462, allocations: 44.11 kB / 0.5255 GB, free: 37.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/1.464, allocations: 1.304 MB / 0.5267 GB, free: 37.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007496/1.464, allocations: 331.4 kB / 0.5271 GB, free: 37.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/1.465, allocations: 21.34 kB / 0.5271 GB, free: 37.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/1.465, allocations: 343.9 kB / 0.5274 GB, free: 37.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/1.466, allocations: 333.5 kB / 0.5277 GB, free: 37.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/1.468, allocations: 0.5397 MB / 0.5283 GB, free: 37.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/1.47, allocations: 391 kB / 0.5286 GB, free: 37.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/1.47, allocations: 3.531 kB / 0.5286 GB, free: 37.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006127/1.476, allocations: 1.672 MB / 0.5303 GB, free: 36.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/1.477, allocations: 6.312 kB / 0.5303 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003445/1.477, allocations: 122 kB / 0.5304 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/1.479, allocations: 263.5 kB / 0.5306 GB, free: 36.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/1.481, allocations: 229.1 kB / 0.5309 GB, free: 36.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/1.495, allocations: 13.22 MB / 0.5438 GB, free: 23.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004134/1.499, allocations: 127.1 kB / 0.5439 GB, free: 23.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003628/1.5, allocations: 52.84 kB / 0.5439 GB, free: 23.95 MB / 346.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.000514/1.5, allocations: 177.1 kB / 0.5441 GB, free: 23.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.501, allocations: 376.1 kB / 0.5445 GB, free: 23.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/1.511, allocations: 1.969 MB / 0.5464 GB, free: 23.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/1.511, allocations: 7.094 kB / 0.5464 GB, free: 23.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/1.512, allocations: 6.938 kB / 0.5464 GB, free: 23.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.61e-05/1.512, allocations: 7.844 kB / 0.5464 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005062/1.517, allocations: 1.555 MB / 0.5479 GB, free: 23.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000396/1.517, allocations: 113.7 kB / 0.548 GB, free: 23.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/1.519, allocations: 166.2 kB / 0.5482 GB, free: 23.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001753/1.521, allocations: 263 kB / 0.5484 GB, free: 22.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004028/1.522, allocations: 45.66 kB / 0.5485 GB, free: 22.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01498/1.537, allocations: 13.21 MB / 0.5614 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/1.537, allocations: 0 / 0.5614 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007662/1.544, allocations: 2.11 MB / 0.5635 GB, free: 25.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/1.547, allocations: 0.4966 MB / 0.5639 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001589/1.548, allocations: 24 kB / 0.564 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.552, allocations: 114.9 kB / 0.5641 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006124/1.552, allocations: 142.9 kB / 0.5642 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/1.552, allocations: 50.66 kB / 0.5643 GB, free: 25.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003756/1.556, allocations: 1.72 MB / 0.5659 GB, free: 25.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.556, allocations: 0 / 0.5659 GB, free: 25.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002936/1.559, allocations: 0.7148 MB / 0.5666 GB, free: 25.35 MB / 362.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.0073/1.567, allocations: 3.472 MB / 0.57 GB, free: 24.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004039/1.571, allocations: 2.139 MB / 0.5721 GB, free: 23.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/1.571, allocations: 0 / 0.5721 GB, free: 23.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/1.573, allocations: 1.743 MB / 0.5738 GB, free: 21.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/1.576, allocations: 470.6 kB / 0.5743 GB, free: 21.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/1.587, allocations: 4.058 MB / 0.5782 GB, free: 20.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/1.589, allocations: 1.721 MB / 0.5799 GB, free: 20.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002161/1.591, allocations: 346.3 kB / 0.5802 GB, free: 20.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001758/1.593, allocations: 1.149 MB / 0.5814 GB, free: 19.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/1.593, allocations: 0 / 0.5814 GB, free: 19.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4557/2.048, allocations: 62.29 MB / 0.6422 GB, free: 77.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/2.049, allocations: 162.5 kB / 0.6423 GB, free: 77.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.224/8.273, allocations: 0 / 0.6423 GB, free: 77.54 MB / 378.7 MB