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 1.805/1.805, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.586e-05/2.594e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2851, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.4466, allocations: 93.37 MB / 351.7 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.4469, allocations: 71.97 kB / 351.8 MB, free: 444 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6092/1.056, allocations: 120.8 MB / 472.5 MB, free: 2.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.056, allocations: 0 / 472.5 MB, free: 2.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.308e-05/1.056, allocations: 40 kB / 472.6 MB, free: 2.516 MB / 314.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.007082/1.063, allocations: 2.645 MB / 475.2 MB, free: 15.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/1.063, allocations: 8.031 kB / 475.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/1.064, allocations: 383.4 kB / 475.6 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006764/1.071, allocations: 2.261 MB / 477.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/1.071, allocations: 16 kB / 477.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/1.072, allocations: 35.89 kB / 477.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001793/1.073, allocations: 0.6821 MB / 478.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/1.075, allocations: 0.7325 MB / 479.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/1.075, allocations: 0 / 479.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/1.075, allocations: 7.984 kB / 479.3 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-05/1.075, allocations: 23.98 kB / 479.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00928/1.085, allocations: 2.932 MB / 482.3 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/1.087, allocations: 0.6264 MB / 482.9 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/1.089, allocations: 0.8686 MB / 483.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3031/1.392, allocations: 35.95 MB / 0.5076 GB, free: 54.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/1.393, allocations: 0.496 MB / 0.508 GB, free: 54.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 4.929e-06/1.393, allocations: 3.938 kB / 0.508 GB, free: 54.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.009661/1.402, allocations: 3.358 MB / 0.5113 GB, free: 52.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.403, allocations: 276.4 kB / 0.5116 GB, free: 52.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/1.406, allocations: 2.038 MB / 0.5136 GB, free: 52.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002378/1.407, allocations: 31.55 kB / 0.5136 GB, free: 52.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/1.408, allocations: 1.056 MB / 0.5146 GB, free: 52.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000449/1.408, allocations: 318.4 kB / 0.5149 GB, free: 52.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.624e-05/1.408, allocations: 7.047 kB / 0.5149 GB, free: 52.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.493e-05/1.408, allocations: 353 kB / 0.5153 GB, free: 51.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007327/1.409, allocations: 311 kB / 0.5156 GB, free: 51.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008648/1.41, allocations: 0.5181 MB / 0.5161 GB, free: 51.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009002/1.411, allocations: 374.3 kB / 0.5164 GB, free: 51.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.411, allocations: 2 kB / 0.5164 GB, free: 51.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00321/1.414, allocations: 1.298 MB / 0.5177 GB, free: 51.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/1.414, allocations: 12.08 kB / 0.5177 GB, free: 51.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002908/1.415, allocations: 120 kB / 0.5178 GB, free: 51.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009947/1.416, allocations: 264.2 kB / 0.5181 GB, free: 51.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/1.417, allocations: 223.8 kB / 0.5183 GB, free: 51.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009028/1.426, allocations: 12.78 MB / 0.5308 GB, free: 39.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/1.429, allocations: 108.6 kB / 0.5309 GB, free: 39.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003465/1.43, allocations: 54.25 kB / 0.5309 GB, free: 39.07 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.0003773/1.43, allocations: 142.5 kB / 0.5311 GB, free: 38.96 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003753/1.434, allocations: 1.523 MB / 0.5326 GB, free: 38.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008577/1.435, allocations: 376.9 kB / 0.5329 GB, free: 38.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00634/1.441, allocations: 1.907 MB / 0.5348 GB, free: 37.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/1.441, allocations: 8.562 kB / 0.5348 GB, free: 37.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.441, allocations: 7.297 kB / 0.5348 GB, free: 37.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/1.441, allocations: 3.609 kB / 0.5348 GB, free: 37.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/1.444, allocations: 1.45 MB / 0.5362 GB, free: 37.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003366/1.445, allocations: 114.1 kB / 0.5363 GB, free: 37.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/1.446, allocations: 171.9 kB / 0.5365 GB, free: 37.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/1.447, allocations: 258.6 kB / 0.5367 GB, free: 37.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000261/1.448, allocations: 36.06 kB / 0.5368 GB, free: 37.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008924/1.457, allocations: 12.77 MB / 0.5492 GB, free: 25.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.457, allocations: 3.953 kB / 0.5492 GB, free: 25.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/1.461, allocations: 2.054 MB / 0.5513 GB, free: 25.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.463, allocations: 0.4909 MB / 0.5517 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009549/1.464, allocations: 14.34 kB / 0.5517 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002323/1.466, allocations: 104.3 kB / 0.5518 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006408/1.467, allocations: 143.9 kB / 0.552 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001615/1.467, allocations: 47.2 kB / 0.552 GB, free: 24.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003305/1.471, allocations: 1.536 MB / 0.5535 GB, free: 24.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.471, allocations: 0 / 0.5535 GB, free: 24.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003023/1.474, allocations: 0.6755 MB / 0.5542 GB, free: 24.56 MB / 346.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.007342/1.481, allocations: 3.499 MB / 0.5576 GB, free: 23.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003704/1.485, allocations: 2.105 MB / 0.5597 GB, free: 22.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.485, allocations: 0 / 0.5597 GB, free: 22.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002351/1.487, allocations: 1.715 MB / 0.5613 GB, free: 21.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003246/1.491, allocations: 456.4 kB / 0.5618 GB, free: 21.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/1.502, allocations: 4.055 MB / 0.5657 GB, free: 20 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/1.503, allocations: 1.723 MB / 0.5674 GB, free: 19.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001818/1.505, allocations: 1.149 MB / 0.5685 GB, free: 19.26 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/1.505, allocations: 3.281 kB / 0.5685 GB, free: 19.26 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.812/6.317, allocations: 154.4 MB / 0.7193 GB, free: 47.62 MB / 378.7 MB