Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker") Notification: Performance of loadModel(PowerSystems): time 2.234/2.234, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.04e-05, allocations: 4 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3537, allocations: 53.22 MB / 357.6 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.009274/0.3631, allocations: 5.713 MB / 363.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005345/0.3685, allocations: 1.977 MB / 365.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007757/0.3693, allocations: 34.94 kB / 365.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005093/0.3698, allocations: 121.9 kB / 365.4 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001651/0.3715, allocations: 381 kB / 365.8 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.3727, allocations: 284.4 kB / 366.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.3738, allocations: 419.1 kB / 366.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.3755, allocations: 0.6915 MB / 367.2 MB, free: 6.914 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007896/0.3763, allocations: 282.5 kB / 367.5 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008367/0.3771, allocations: 381.2 kB / 367.8 MB, free: 6.547 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.3783, allocations: 413.3 kB / 368.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.3786, allocations: 41.19 kB / 368.3 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005095/0.3791, allocations: 316.3 kB / 368.6 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.3795, allocations: 76.94 kB / 368.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.3811, allocations: 0.9007 MB / 369.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3812, allocations: 0 / 369.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3812, allocations: 4 kB / 369.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.3812, allocations: 0 / 369.6 MB, free: 5.523 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003212/0.3845, allocations: 1.043 MB / 370.6 MB, free: 4.422 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3845, allocations: 12.03 kB / 370.6 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/0.3857, allocations: 146.8 kB / 370.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.3872, allocations: 0.5414 MB / 371.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.224e-05/0.3874, allocations: 58 kB / 371.4 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000315/0.3877, allocations: 87.92 kB / 371.4 MB, free: 3.543 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/0.3904, allocations: 1.068 MB / 372.5 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/0.3904, allocations: 8 kB / 372.5 MB, free: 2.402 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.3906, allocations: 31.98 kB / 372.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002232/0.3908, allocations: 49.92 kB / 372.6 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.3934, allocations: 0.9289 MB / 373.5 MB, free: 1.395 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008888/0.4023, allocations: 4.223 MB / 377.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.4045, allocations: 0.9422 MB / 378.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.4046, allocations: 16.61 kB / 378.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/0.4062, allocations: 0.6357 MB / 379.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=92): time 3.467e-06/0.4062, allocations: 0 / 379.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=93): time 0.007649/0.4139, allocations: 3.064 MB / 382.4 MB, free: 8.066 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.4141, allocations: 157.5 kB / 382.6 MB, free: 7.883 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007776/0.4149, allocations: 425 kB / 383 MB, free: 7.465 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.415, allocations: 45.7 kB / 383 MB, free: 7.414 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003901/0.4154, allocations: 418.2 kB / 383.4 MB, free: 7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.4158, allocations: 280.1 kB / 383.7 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.4159, allocations: 23.98 kB / 383.7 MB, free: 6.699 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.4161, allocations: 358.8 kB / 384.1 MB, free: 6.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.4172, allocations: 394.3 kB / 384.5 MB, free: 5.953 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.4185, allocations: 0.6129 MB / 385.1 MB, free: 5.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.4198, allocations: 484.4 kB / 385.5 MB, free: 4.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.4199, allocations: 4 kB / 385.5 MB, free: 4.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.005033/0.4249, allocations: 1.479 MB / 387 MB, free: 3.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.918e-05/0.425, allocations: 37.69 kB / 387.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004164/0.4292, allocations: 1.148 MB / 388.2 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002319/0.4315, allocations: 436.5 kB / 388.6 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009869/0.4326, allocations: 135.7 kB / 388.8 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.4454, allocations: 4.86 MB / 393.6 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.4466, allocations: 79.8 kB / 393.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.4467, allocations: 44 kB / 393.8 MB, free: 12.39 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007493/0.4475, allocations: 343 kB / 394.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.4477, allocations: 63.25 kB / 394.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/0.4508, allocations: 1.13 MB / 395.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.694e-05/0.4509, allocations: 12 kB / 395.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4509, allocations: 0 / 395.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.451, allocations: 7.984 kB / 395.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005627/0.4566, allocations: 2.148 MB / 397.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.4567, allocations: 0 / 397.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.4579, allocations: 135.8 kB / 397.6 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002671/0.4582, allocations: 90.44 kB / 397.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-05/0.4583, allocations: 23.98 kB / 397.7 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00397/0.4623, allocations: 3.942 MB / 401.6 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.4624, allocations: 4.031 kB / 401.6 MB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/0.467, allocations: 1.789 MB / 403.4 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.4673, allocations: 144.2 kB / 403.6 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.4675, allocations: 23.98 kB / 403.6 MB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008467/0.4684, allocations: 67.92 kB / 403.7 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.4687, allocations: 80.88 kB / 403.7 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.4688, allocations: 24 kB / 403.8 MB, free: 1.773 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005827/0.4694, allocations: 323 kB / 404.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4694, allocations: 0 / 404.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001281/0.4707, allocations: 260 kB / 404.3 MB, free: 1.203 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004764/0.4712, allocations: 163.5 kB / 404.5 MB, free: 1.039 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.4749, allocations: 1.335 MB / 405.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.475, allocations: 3.938 kB / 405.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.477, allocations: 0.9502 MB / 406.8 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009/0.4779, allocations: 102 kB / 406.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004884/0.4828, allocations: 2.22 MB / 409.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000963/0.4838, allocations: 1.049 MB / 410.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004724/0.4843, allocations: 63.42 kB / 410.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4843, allocations: 0 / 410.2 MB, free: 11.18 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.