Running command: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadModel(PowerSystems): time 2.458/2.458, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.755e-05, allocations: 4 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3664, allocations: 53.22 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.0122/0.3787, allocations: 7.688 MB / 365.3 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007323/0.386, allocations: 2.468 MB / 367.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.3874, allocations: 63.56 kB / 367.8 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.3884, allocations: 242.5 kB / 368 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002213/0.3907, allocations: 450.4 kB / 368.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.3926, allocations: 427.1 kB / 368.9 MB, free: 4.125 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.3941, allocations: 493 kB / 369.4 MB, free: 3.645 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.3963, allocations: 0.9457 MB / 370.3 MB, free: 2.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.3974, allocations: 355 kB / 370.7 MB, free: 2.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.3985, allocations: 422.8 kB / 371.1 MB, free: 1.906 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007407/0.3993, allocations: 171.8 kB / 371.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000233/0.3995, allocations: 43.94 kB / 371.3 MB, free: 1.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000603/0.4002, allocations: 423 kB / 371.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003765/0.4006, allocations: 96 kB / 371.8 MB, free: 1.188 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001655/0.4022, allocations: 0.9819 MB / 372.8 MB, free: 208 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.4023, allocations: 4 kB / 372.8 MB, free: 204 kB / 298.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4023, allocations: 0 / 372.8 MB, free: 204 kB / 298.7 MB Notification: Performance of Transformations before backend: time 3.278e-05/0.4023, allocations: 0 / 372.8 MB, free: 204 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002907/0.4052, allocations: 1.063 MB / 373.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.4053, allocations: 8.031 kB / 373.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.4071, allocations: 174.6 kB / 374 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.4091, allocations: 0.6835 MB / 374.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.226e-05/0.4092, allocations: 65.94 kB / 374.8 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003947/0.4097, allocations: 111.8 kB / 374.9 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002929/0.4126, allocations: 1.201 MB / 376.1 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.4127, allocations: 4 kB / 376.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.4128, allocations: 39.98 kB / 376.1 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004958/0.4133, allocations: 61.97 kB / 376.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.4162, allocations: 1.011 MB / 377.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009969/0.4262, allocations: 4.779 MB / 382 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.4281, allocations: 0.678 MB / 382.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.66e-05/0.4283, allocations: 8.625 kB / 382.7 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.4295, allocations: 0.4925 MB / 383.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 7.284e-06/0.4295, allocations: 4 kB / 383.2 MB, free: 5.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.007849/0.4374, allocations: 2.916 MB / 386.1 MB, free: 2.363 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.4376, allocations: 170.7 kB / 386.2 MB, free: 2.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009695/0.4385, allocations: 0.5149 MB / 386.7 MB, free: 1.641 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/0.4387, allocations: 45.7 kB / 386.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004552/0.4392, allocations: 497.5 kB / 387.3 MB, free: 1.098 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/0.4395, allocations: 264.3 kB / 387.5 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-05/0.4396, allocations: 24 kB / 387.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4398, allocations: 342.8 kB / 387.9 MB, free: 480 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.4408, allocations: 369.8 kB / 388.3 MB, free: 108 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.4421, allocations: 0.6232 MB / 388.9 MB, free: 15.37 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.009536/0.4517, allocations: 2.379 MB / 391.3 MB, free: 12.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/0.4517, allocations: 7.938 kB / 391.3 MB, free: 12.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003795/0.4555, allocations: 1.285 MB / 392.6 MB, free: 11.61 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.039e-05/0.4556, allocations: 39.22 kB / 392.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.4557, allocations: 8 kB / 392.6 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4568, allocations: 263 kB / 392.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/0.4592, allocations: 271.6 kB / 393.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008502/0.4677, allocations: 5.624 MB / 398.7 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.4688, allocations: 51.94 kB / 398.8 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.4689, allocations: 36 kB / 398.8 MB, free: 4.914 MB / 330.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008099/0.4697, allocations: 374.9 kB / 399.2 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.4699, allocations: 79.06 kB / 399.3 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/0.4732, allocations: 1.118 MB / 400.4 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.519e-05/0.4733, allocations: 19.95 kB / 400.4 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.4733, allocations: 4.5 kB / 400.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4733, allocations: 3.984 kB / 400.4 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005981/0.4793, allocations: 2.234 MB / 402.7 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.4794, allocations: 0 / 402.7 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.4814, allocations: 199.8 kB / 402.8 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.4827, allocations: 246.3 kB / 403.1 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.4829, allocations: 27.98 kB / 403.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008522/0.4914, allocations: 5.563 MB / 408.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.4915, allocations: 7.922 kB / 408.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004635/0.4961, allocations: 1.687 MB / 410.4 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000341/0.4965, allocations: 160 kB / 410.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.4968, allocations: 20 kB / 410.6 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007888/0.4976, allocations: 27.97 kB / 410.6 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4978, allocations: 52.48 kB / 410.6 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/0.4979, allocations: 23.98 kB / 410.7 MB, free: 8.445 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007837/0.4987, allocations: 407 kB / 411 MB, free: 8.051 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4987, allocations: 4 kB / 411.1 MB, free: 8.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001678/0.5004, allocations: 276 kB / 411.3 MB, free: 7.777 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004397/0.5009, allocations: 147 kB / 411.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003637/0.5045, allocations: 1.373 MB / 412.8 MB, free: 6.203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5046, allocations: 0 / 412.8 MB, free: 6.203 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.5069, allocations: 0.9248 MB / 413.8 MB, free: 5.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.5082, allocations: 163.2 kB / 413.9 MB, free: 5.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005971/0.5142, allocations: 2.674 MB / 416.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.5153, allocations: 1.139 MB / 417.7 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.5157, allocations: 59.42 kB / 417.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5158, allocations: 0 / 417.8 MB, free: 1.129 MB / 346.7 MB [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN.