Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008935, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008952/0.0008953, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06142/0.06142, allocations: 14.16 MB / 284.5 MB, free: 7.133 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005004/0.0005006, allocations: 16 kB / 346.2 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1233, allocations: 51.11 MB / 397.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad): time 0.01069/0.134, allocations: 9.791 MB / 407.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008749/0.1428, allocations: 4.684 MB / 411.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.1444, allocations: 39.81 kB / 411.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.1459, allocations: 477.4 kB / 412.3 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005708/0.1516, allocations: 2.058 MB / 414.4 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1529, allocations: 494.7 kB / 414.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004849/0.1577, allocations: 2.577 MB / 417.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.1582, allocations: 213.7 kB / 417.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.16, allocations: 0.9887 MB / 418.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.1612, allocations: 0.9184 MB / 419.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.1613, allocations: 52 kB / 419.6 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1624, allocations: 383.6 kB / 420 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.1626, allocations: 199 kB / 420.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.1631, allocations: 372.8 kB / 420.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001939/0.165, allocations: 1.711 MB / 422.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1651, allocations: 0 / 422.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.1651, allocations: 0 / 422.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.1651, allocations: 0 / 422.3 MB, free: 7.652 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.008444/0.1736, allocations: 2.517 MB / 424.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.1736, allocations: 8.031 kB / 424.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004309/0.1741, allocations: 210.6 kB / 425 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.1752, allocations: 285.7 kB / 425.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.1773, allocations: 1.027 MB / 426.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.1775, allocations: 182.1 kB / 426.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.1777, allocations: 140 kB / 426.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.18, allocations: 1.415 MB / 428 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.1801, allocations: 3.938 kB / 428 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.1802, allocations: 59.98 kB / 428.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/0.1803, allocations: 36 kB / 428.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.1826, allocations: 1.376 MB / 429.5 MB, free: 172 kB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2719/0.4545, allocations: 8.838 MB / 438.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002971/0.4575, allocations: 1.529 MB / 439.9 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.711e-05/0.4576, allocations: 18.53 kB / 439.9 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001466/0.459, allocations: 1.197 MB / 441.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 4.468e-06/0.4591, allocations: 0 / 441.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=167): time 0.009388/0.4685, allocations: 3.302 MB / 444.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/0.4687, allocations: 0.5417 MB / 444.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.47, allocations: 0.7891 MB / 445.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.4702, allocations: 59.02 kB / 445.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.4707, allocations: 0.5907 MB / 446.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005504/0.4712, allocations: 0.538 MB / 446.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.4713, allocations: 33.56 kB / 446.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4714, allocations: 368.4 kB / 447.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/0.4723, allocations: 440.6 kB / 447.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/0.4732, allocations: 0.6837 MB / 448.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009006/0.4742, allocations: 0.6287 MB / 449 MB, free: 9.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.4742, allocations: 2.031 kB / 449 MB, free: 9.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003827/0.478, allocations: 1.935 MB / 451 MB, free: 9.473 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.115e-05/0.4781, allocations: 142.6 kB / 451.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.4781, allocations: 7.406 kB / 451.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.4796, allocations: 455.2 kB / 451.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.4809, allocations: 317 kB / 451.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.4871, allocations: 4.17 MB / 456 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.4886, allocations: 96.78 kB / 456.1 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.4887, allocations: 62.2 kB / 456.2 MB, free: 7.887 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 28 (transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalB,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatusInternalA,$PRE.transmissionLine2.breakerStatusInternalB) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 4 * 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 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007558/0.4895, allocations: 418.4 kB / 456.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.4897, allocations: 158.7 kB / 456.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.4929, allocations: 1.877 MB / 458.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.4929, allocations: 15.25 kB / 458.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4929, allocations: 0 / 458.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-05/0.493, allocations: 11.11 kB / 458.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004831/0.4978, allocations: 3.421 MB / 462.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.4978, allocations: 3.5 kB / 462.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009983/0.4988, allocations: 266.5 kB / 462.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.5, allocations: 431.4 kB / 462.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.502e-05/0.5001, allocations: 33.94 kB / 462.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005042/0.5051, allocations: 4.084 MB / 466.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.5052, allocations: 256 / 466.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.508, allocations: 1.926 MB / 468.8 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005133/0.5085, allocations: 331.1 kB / 469.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.5087, allocations: 43.98 kB / 469.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007008/0.5094, allocations: 67.58 kB / 469.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.5097, allocations: 132.8 kB / 469.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.462e-05/0.5098, allocations: 44 kB / 469.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007767/0.5105, allocations: 0.5248 MB / 469.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5105, allocations: 0 / 469.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001766/0.5123, allocations: 0.5502 MB / 470.5 MB, free: 14.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine2.breakerStatus) * Number of discrete states: 18 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * 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 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.003748/0.5161, allocations: 2.599 MB / 473.1 MB, free: 12.01 MB / 334.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created initialization part: time 0.003327/0.5194, allocations: 1.998 MB / 475.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5194, allocations: 0 / 475.1 MB, free: 9.98 MB / 334.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created simulation system equations: time 0.001976/0.5214, allocations: 1.388 MB / 476.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009747/0.5224, allocations: 137.3 kB / 476.6 MB, free: 8.445 MB / 334.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.5373, allocations: 11.64 MB / 488.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008642/0.5382, allocations: 1.226 MB / 489.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008671/0.5391, allocations: 177.9 kB / 489.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/0.5398, allocations: 0.5188 MB / 490.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.465e-06/0.5398, allocations: 0 / 490.2 MB, free: 10.52 MB / 350.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896258, 0.0).