Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.884e-05/4.911e-05, allocations: 7.438 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.296, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.4628, allocations: 94.04 MB / 357.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.4632, allocations: 75.95 kB / 358 MB, free: 11.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6535/1.117, allocations: 126 MB / 483.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.117, allocations: 0 / 483.9 MB, free: 4.664 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001039/1.117, allocations: 44 kB / 484 MB, free: 4.621 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.008129/1.125, allocations: 2.64 MB / 486.6 MB, free: 1.926 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.214e-05/1.125, allocations: 16.03 kB / 486.6 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003761/1.126, allocations: 102.5 kB / 486.7 MB, free: 1.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000917/1.126, allocations: 384.3 kB / 487.1 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007029/1.134, allocations: 2.252 MB / 489.4 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.476e-05/1.134, allocations: 37 kB / 489.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/1.134, allocations: 59.83 kB / 489.5 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/1.136, allocations: 0.7813 MB / 490.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/1.136, allocations: 3.938 kB / 490.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/1.137, allocations: 24 kB / 490.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.935e-05/1.137, allocations: 19.98 kB / 490.3 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002202/1.139, allocations: 0.7013 MB / 491 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/1.15, allocations: 3.05 MB / 494 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/1.152, allocations: 0.6377 MB / 494.7 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002257/1.155, allocations: 0.8915 MB / 495.6 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3111/1.466, allocations: 35.95 MB / 0.5191 GB, free: 39.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001379/1.467, allocations: 0.5162 MB / 0.5196 GB, free: 39.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 6.261e-06/1.467, allocations: 0 / 0.5196 GB, free: 39.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01151/1.479, allocations: 3.477 MB / 0.523 GB, free: 38.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.479, allocations: 274.3 kB / 0.5232 GB, free: 37.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00508/1.484, allocations: 2.221 MB / 0.5254 GB, free: 37.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002849/1.484, allocations: 47.39 kB / 0.5254 GB, free: 37.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/1.486, allocations: 1.057 MB / 0.5265 GB, free: 37.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005746/1.486, allocations: 330.4 kB / 0.5268 GB, free: 37.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/1.487, allocations: 23.47 kB / 0.5268 GB, free: 37.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/1.487, allocations: 356.7 kB / 0.5272 GB, free: 36.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/1.488, allocations: 329.9 kB / 0.5275 GB, free: 36.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/1.489, allocations: 0.5419 MB / 0.528 GB, free: 36.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/1.49, allocations: 383.5 kB / 0.5284 GB, free: 36.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/1.49, allocations: 0.5625 kB / 0.5284 GB, free: 36.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003837/1.494, allocations: 1.378 MB / 0.5297 GB, free: 36.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/1.494, allocations: 9.25 kB / 0.5297 GB, free: 36.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002828/1.495, allocations: 124 kB / 0.5298 GB, free: 36.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/1.496, allocations: 255.3 kB / 0.5301 GB, free: 36.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/1.498, allocations: 229.7 kB / 0.5303 GB, free: 36.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.508, allocations: 13.22 MB / 0.5432 GB, free: 23.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/1.511, allocations: 127.5 kB / 0.5433 GB, free: 23.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000353/1.511, allocations: 60.69 kB / 0.5434 GB, free: 23.65 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.0003832/1.511, allocations: 170.2 kB / 0.5436 GB, free: 23.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008136/1.512, allocations: 381.2 kB / 0.5439 GB, free: 23.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00716/1.519, allocations: 1.965 MB / 0.5458 GB, free: 22.97 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/1.52, allocations: 13.31 kB / 0.5458 GB, free: 22.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/1.52, allocations: 10.09 kB / 0.5459 GB, free: 22.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.52, allocations: 7.469 kB / 0.5459 GB, free: 22.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/1.523, allocations: 1.547 MB / 0.5474 GB, free: 22.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002876/1.524, allocations: 110.8 kB / 0.5475 GB, free: 22.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/1.525, allocations: 174.6 kB / 0.5476 GB, free: 22.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/1.526, allocations: 261.3 kB / 0.5479 GB, free: 22.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003248/1.527, allocations: 47.11 kB / 0.5479 GB, free: 22.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/1.538, allocations: 13.21 MB / 0.5608 GB, free: 26.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.538, allocations: 0 / 0.5608 GB, free: 26.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005702/1.543, allocations: 2.106 MB / 0.5629 GB, free: 25.53 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.545, allocations: 0.4948 MB / 0.5634 GB, free: 25.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009409/1.546, allocations: 19.56 kB / 0.5634 GB, free: 25.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/1.549, allocations: 122.4 kB / 0.5635 GB, free: 25.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006946/1.55, allocations: 140.1 kB / 0.5636 GB, free: 25.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001918/1.55, allocations: 52.56 kB / 0.5637 GB, free: 25.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00429/1.554, allocations: 1.72 MB / 0.5654 GB, free: 25.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.443e-06/1.554, allocations: 0 / 0.5654 GB, free: 25.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003339/1.557, allocations: 0.713 MB / 0.5661 GB, free: 25.05 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.008407/1.566, allocations: 3.478 MB / 0.5695 GB, free: 23.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004517/1.57, allocations: 2.136 MB / 0.5716 GB, free: 22.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.337e-06/1.571, allocations: 0 / 0.5716 GB, free: 22.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003096/1.574, allocations: 1.738 MB / 0.5733 GB, free: 21.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00317/1.577, allocations: 480.7 kB / 0.5737 GB, free: 21.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/1.59, allocations: 4.118 MB / 0.5777 GB, free: 20.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/1.592, allocations: 1.723 MB / 0.5794 GB, free: 19.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002193/1.594, allocations: 1.155 MB / 0.5805 GB, free: 18.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.204e-06/1.594, allocations: 3.938 kB / 0.5805 GB, free: 18.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.018/6.612, allocations: 154.3 MB / 0.7312 GB, free: 19.72 MB / 378.7 MB