Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.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.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",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.001101/0.001101, allocations: 88.17 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 181.6 kB / 16.59 MB, free: 6.855 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06181/0.06181, allocations: 14.17 MB / 285.2 MB, free: 7.145 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.0005505/0.0005506, allocations: 16 kB / 346.9 MB, free: 19.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1266, allocations: 51.11 MB / 398 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.007028/0.1337, allocations: 6.678 MB / 404.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005756/0.1395, allocations: 3.326 MB / 408 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005512/0.14, allocations: 19.94 kB / 408.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008389/0.1409, allocations: 310.4 kB / 408.4 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003136/0.144, allocations: 1.41 MB / 409.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007605/0.1448, allocations: 410.8 kB / 410.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.1473, allocations: 1.93 MB / 412.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002791/0.1476, allocations: 118.5 kB / 412.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007214/0.1484, allocations: 0.525 MB / 412.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.1491, allocations: 0.5368 MB / 413.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.1492, allocations: 28 kB / 413.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008445/0.15, allocations: 331.7 kB / 413.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1502, allocations: 115.3 kB / 413.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.1504, allocations: 221.2 kB / 414 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.1514, allocations: 1.04 MB / 415 MB, free: 15.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1515, allocations: 0 / 415 MB, free: 15.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1515, allocations: 0 / 415 MB, free: 15.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1515, allocations: 0 / 415 MB, free: 15.6 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004253/0.1557, allocations: 1.562 MB / 416.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.1558, allocations: 8.031 kB / 416.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002646/0.1561, allocations: 130.7 kB / 416.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005897/0.1567, allocations: 154.7 kB / 416.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.1579, allocations: 0.6598 MB / 417.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.1581, allocations: 95.7 kB / 417.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1582, allocations: 76 kB / 417.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.1596, allocations: 0.81 MB / 418.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.1596, allocations: 4 kB / 418.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.145e-05/0.1597, allocations: 32 kB / 418.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.1597, allocations: 20 kB / 418.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.1611, allocations: 0.7611 MB / 419.3 MB, free: 11.13 MB / 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.005439/0.1665, allocations: 4.941 MB / 424.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.1682, allocations: 0.9471 MB / 425.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005061/0.1688, allocations: 324.9 kB / 425.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.438e-05/0.1688, allocations: 9 kB / 425.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008364/0.1697, allocations: 0.6458 MB / 426.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.505e-06/0.1697, allocations: 3.938 kB / 426.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.005142/0.1748, allocations: 1.885 MB / 428 MB, free: 1.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.175, allocations: 303.7 kB / 428.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005648/0.1756, allocations: 0.4991 MB / 428.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.1757, allocations: 45.7 kB / 428.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.1759, allocations: 364.3 kB / 429.2 MB, free: 436 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.1762, allocations: 303.6 kB / 429.5 MB, free: 128 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.1762, allocations: 16 kB / 429.6 MB, free: 112 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.2612/0.4375, allocations: 386.7 kB / 429.9 MB, free: 36.62 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008708/0.4384, allocations: 232.8 kB / 430.2 MB, free: 36.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006525/0.4391, allocations: 382.8 kB / 430.5 MB, free: 36.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.4396, allocations: 344.2 kB / 430.9 MB, free: 36.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.4397, allocations: 1.5 kB / 430.9 MB, free: 36.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002794/0.4425, allocations: 1.106 MB / 432 MB, free: 36.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.283e-05/0.4426, allocations: 68.05 kB / 432 MB, free: 36.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4426, allocations: 4.422 kB / 432.1 MB, free: 36.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.4438, allocations: 291.7 kB / 432.3 MB, free: 36.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006926/0.4445, allocations: 171 kB / 432.5 MB, free: 36.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00456/0.449, allocations: 3.01 MB / 435.5 MB, free: 34.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007733/0.4498, allocations: 52.25 kB / 435.6 MB, free: 34.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.045e-05/0.4499, allocations: 31.8 kB / 435.6 MB, free: 34.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 14 (transmissionLine.breakerStatusInternalB,transmissionLine.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.transmissionLine.breakerStatus,transmissionLine.breakerStatus,$PRE.transmissionLine.breakerStatusInternalA,$PRE.transmissionLine.breakerStatusInternalB) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * 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 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005016/0.4504, allocations: 288.7 kB / 435.9 MB, free: 34.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.4506, allocations: 84.41 kB / 436 MB, free: 34.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002257/0.4528, allocations: 1.091 MB / 437 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4528, allocations: 8.25 kB / 437.1 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4529, allocations: 0.5625 kB / 437.1 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.4529, allocations: 3.984 kB / 437.1 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.4565, allocations: 2.08 MB / 439.1 MB, free: 32.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.4565, allocations: 0 / 439.1 MB, free: 32.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006075/0.4572, allocations: 141.3 kB / 439.3 MB, free: 32.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.4582, allocations: 287 kB / 439.6 MB, free: 32.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-05/0.4583, allocations: 21.58 kB / 439.6 MB, free: 32.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.4624, allocations: 2.953 MB / 442.5 MB, free: 30.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4624, allocations: 0.625 kB / 442.5 MB, free: 30.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003396/0.4658, allocations: 2.15 MB / 444.7 MB, free: 29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004148/0.4662, allocations: 218.6 kB / 444.9 MB, free: 28.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.4664, allocations: 21.48 kB / 444.9 MB, free: 28.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004096/0.4668, allocations: 29.62 kB / 444.9 MB, free: 28.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.467, allocations: 73.66 kB / 445 MB, free: 28.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/0.4671, allocations: 29.39 kB / 445 MB, free: 28.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006252/0.4677, allocations: 343.8 kB / 445.4 MB, free: 28.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4678, allocations: 1.062 kB / 445.4 MB, free: 28.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001435/0.4692, allocations: 331.5 kB / 445.7 MB, free: 28.57 MB / 318.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: 9 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,transmissionLine.breakerStatus) * Number of discrete states: 9 (transmissionLine.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002491/0.4717, allocations: 1.766 MB / 447.5 MB, free: 27.45 MB / 318.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.002187/0.4739, allocations: 1.155 MB / 448.6 MB, free: 26.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.4739, allocations: 0 / 448.6 MB, free: 26.82 MB / 318.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.001363/0.4753, allocations: 0.826 MB / 449.5 MB, free: 26.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007778/0.4761, allocations: 105.8 kB / 449.6 MB, free: 26.28 MB / 318.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.008749/0.4848, allocations: 4.881 MB / 454.4 MB, free: 23.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.4854, allocations: 0.9776 MB / 455.4 MB, free: 22.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000461/0.4859, allocations: 98.23 kB / 455.5 MB, free: 22.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.4862, allocations: 280.7 kB / 455.8 MB, free: 22.61 MB / 318.1 MB Notification: Performance of SimCode: time 1.783e-06/0.4862, allocations: 0 / 455.8 MB, free: 22.61 MB / 318.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896258, 0.0).