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.831/1.831, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.11e-05/4.13e-05, allocations: 0 / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2895, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.4809, allocations: 94.03 MB / 357.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.4813, allocations: 75.95 kB / 358 MB, free: 11.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6311/1.112, allocations: 126 MB / 483.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.112, allocations: 0 / 483.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.065e-05/1.113, allocations: 40 kB / 484 MB, free: 4.586 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.007981/1.121, allocations: 2.651 MB / 486.6 MB, free: 1.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/1.121, allocations: 12.03 kB / 486.6 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003751/1.121, allocations: 94.45 kB / 486.7 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009687/1.122, allocations: 388.2 kB / 487.1 MB, free: 1.383 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007187/1.129, allocations: 2.248 MB / 489.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.969e-05/1.129, allocations: 33 kB / 489.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/1.13, allocations: 55.89 kB / 489.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/1.132, allocations: 0.791 MB / 490.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/1.132, allocations: 3.938 kB / 490.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/1.132, allocations: 19.94 kB / 490.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.703e-05/1.132, allocations: 23.98 kB / 490.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002047/1.134, allocations: 0.7033 MB / 491 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/1.144, allocations: 3.046 MB / 494 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/1.146, allocations: 0.651 MB / 494.7 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/1.148, allocations: 0.8915 MB / 495.6 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3521/1.5, allocations: 35.96 MB / 0.5191 GB, free: 38.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001769/1.502, allocations: 0.521 MB / 0.5196 GB, free: 38.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 6.462e-06/1.502, allocations: 2.516 kB / 0.5196 GB, free: 38.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01489/1.517, allocations: 3.477 MB / 0.523 GB, free: 37.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/1.517, allocations: 273.4 kB / 0.5233 GB, free: 37.08 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006784/1.524, allocations: 2.222 MB / 0.5254 GB, free: 36.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003267/1.525, allocations: 44.39 kB / 0.5255 GB, free: 36.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002177/1.527, allocations: 1.309 MB / 0.5267 GB, free: 36.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006824/1.527, allocations: 331.4 kB / 0.5271 GB, free: 36.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/1.528, allocations: 16.66 kB / 0.5271 GB, free: 36.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/1.528, allocations: 355.2 kB / 0.5274 GB, free: 36.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/1.529, allocations: 328.4 kB / 0.5277 GB, free: 36.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/1.531, allocations: 0.5439 MB / 0.5283 GB, free: 35.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/1.532, allocations: 393.5 kB / 0.5286 GB, free: 35.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/1.532, allocations: 3.25 kB / 0.5286 GB, free: 35.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006139/1.538, allocations: 1.692 MB / 0.5303 GB, free: 35.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/1.538, allocations: 6.062 kB / 0.5303 GB, free: 35.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000345/1.539, allocations: 119.6 kB / 0.5304 GB, free: 35.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001504/1.54, allocations: 268.1 kB / 0.5307 GB, free: 35.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002447/1.543, allocations: 228.5 kB / 0.5309 GB, free: 35.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/1.556, allocations: 13.24 MB / 0.5438 GB, free: 22.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/1.56, allocations: 124.9 kB / 0.5439 GB, free: 22.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/1.561, allocations: 53.25 kB / 0.544 GB, free: 22.77 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.0004969/1.561, allocations: 170.9 kB / 0.5441 GB, free: 22.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.563, allocations: 380.4 kB / 0.5445 GB, free: 22.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009593/1.572, allocations: 1.96 MB / 0.5464 GB, free: 22.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/1.572, allocations: 13.81 kB / 0.5464 GB, free: 22.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/1.572, allocations: 3.594 kB / 0.5464 GB, free: 22.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/1.572, allocations: 7.516 kB / 0.5464 GB, free: 22.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/1.577, allocations: 1.55 MB / 0.548 GB, free: 21.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003583/1.577, allocations: 116.7 kB / 0.5481 GB, free: 21.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/1.579, allocations: 172 kB / 0.5482 GB, free: 21.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/1.581, allocations: 260.5 kB / 0.5485 GB, free: 21.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/1.581, allocations: 44.62 kB / 0.5485 GB, free: 21.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/1.595, allocations: 13.24 MB / 0.5615 GB, free: 25.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.595, allocations: 0 / 0.5615 GB, free: 25.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007471/1.603, allocations: 2.106 MB / 0.5635 GB, free: 24.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002269/1.605, allocations: 0.5016 MB / 0.564 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.606, allocations: 19.44 kB / 0.564 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003486/1.609, allocations: 118.5 kB / 0.5641 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007709/1.61, allocations: 144.9 kB / 0.5643 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/1.611, allocations: 47.91 kB / 0.5643 GB, free: 24.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006242/1.617, allocations: 1.716 MB / 0.566 GB, free: 24.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.617, allocations: 7.125 kB / 0.566 GB, free: 24.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004199/1.621, allocations: 0.711 MB / 0.5667 GB, free: 24.18 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.0105/1.632, allocations: 3.473 MB / 0.5701 GB, free: 23.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005785/1.637, allocations: 2.209 MB / 0.5722 GB, free: 21.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.638, allocations: 0 / 0.5722 GB, free: 21.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003856/1.641, allocations: 1.802 MB / 0.574 GB, free: 20.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004045/1.646, allocations: 481.7 kB / 0.5745 GB, free: 20.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/1.656, allocations: 4.058 MB / 0.5784 GB, free: 19.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/1.657, allocations: 1.725 MB / 0.5801 GB, free: 18.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002008/1.659, allocations: 340.5 kB / 0.5804 GB, free: 18.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/1.661, allocations: 1.153 MB / 0.5816 GB, free: 17.72 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/1.661, allocations: 0 / 0.5816 GB, free: 17.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4122/2.073, allocations: 62.39 MB / 0.6425 GB, free: 78.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/2.074, allocations: 163.8 kB / 0.6426 GB, free: 77.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.486/8.56, allocations: 3.938 kB / 0.6426 GB, free: 77.87 MB / 378.7 MB