Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_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.000881/0.0008812, allocations: 98.45 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.0008801/0.0008801, allocations: 177.3 kB / 15.94 MB, free: 228 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.567/1.567, allocations: 205.4 MB / 222.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06444/0.06444, allocations: 14.16 MB / 284.5 MB, free: 7.023 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.0005453/0.0005456, allocations: 16.22 kB / 346.2 MB, free: 19.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1184, allocations: 51.11 MB / 397.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.006309/0.1247, allocations: 6.11 MB / 403.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005702/0.1305, allocations: 3.272 MB / 406.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009099/0.1314, allocations: 23.88 kB / 406.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.1326, allocations: 310.4 kB / 407.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003884/0.1365, allocations: 1.498 MB / 408.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008424/0.1374, allocations: 417.9 kB / 409 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002668/0.14, allocations: 1.451 MB / 410.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.1403, allocations: 114.5 kB / 410.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008413/0.1412, allocations: 0.5566 MB / 411.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006474/0.1418, allocations: 0.5254 MB / 411.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.491e-05/0.1419, allocations: 28 kB / 411.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.1429, allocations: 307.7 kB / 411.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.1431, allocations: 115.4 kB / 412 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.1433, allocations: 221.2 kB / 412.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.1445, allocations: 1.025 MB / 413.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.1445, allocations: 0 / 413.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1445, allocations: 0 / 413.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.1445, allocations: 0 / 413.3 MB, free: 0.6328 MB / 302.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.004327/0.1488, allocations: 1.562 MB / 414.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1489, allocations: 12.03 kB / 414.9 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001763/0.1491, allocations: 122.7 kB / 415 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005942/0.1497, allocations: 158.7 kB / 415.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.1509, allocations: 0.6599 MB / 415.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.151, allocations: 107.6 kB / 415.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1511, allocations: 76 kB / 416 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.1524, allocations: 0.8022 MB / 416.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1525, allocations: 0 / 416.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.242e-05/0.1525, allocations: 36 kB / 416.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.1526, allocations: 16 kB / 416.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.1539, allocations: 0.7611 MB / 417.6 MB, free: 12.17 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.00501/0.1589, allocations: 4.934 MB / 422.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.1605, allocations: 0.951 MB / 423.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-05/0.1606, allocations: 12.94 kB / 423.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000789/0.1614, allocations: 0.6421 MB / 424.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.856e-06/0.1614, allocations: 0 / 424.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.004852/0.1663, allocations: 1.857 MB / 426 MB, free: 3.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.1664, allocations: 311.7 kB / 426.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006037/0.167, allocations: 0.4951 MB / 426.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.987e-05/0.1671, allocations: 41.7 kB / 426.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.1674, allocations: 364.3 kB / 427.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.1676, allocations: 299.6 kB / 427.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.1677, allocations: 20 kB / 427.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1679, allocations: 382.8 kB / 427.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/0.1682, allocations: 237.9 kB / 428.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.1687, allocations: 379.7 kB / 428.5 MB, free: 456 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.1692, allocations: 346.3 kB / 428.8 MB, free: 100 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1692, allocations: 4 kB / 428.8 MB, free: 96 kB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.225/0.3943, allocations: 1.102 MB / 429.9 MB, free: 36.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.679e-05/0.3944, allocations: 68.89 kB / 430 MB, free: 35.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.3944, allocations: 3.375 kB / 430 MB, free: 35.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.3955, allocations: 292 kB / 430.3 MB, free: 35.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006824/0.3962, allocations: 173.3 kB / 430.4 MB, free: 35.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004999/0.4012, allocations: 3.094 MB / 433.5 MB, free: 34.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007564/0.402, allocations: 58.69 kB / 433.6 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.383e-05/0.4021, allocations: 32.62 kB / 433.6 MB, free: 34.54 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.0006589/0.4027, allocations: 281.5 kB / 433.9 MB, free: 34.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.4029, allocations: 87.86 kB / 434 MB, free: 34.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002921/0.4059, allocations: 1.09 MB / 435.1 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.4059, allocations: 8.219 kB / 435.1 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.4059, allocations: 0 / 435.1 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.4059, allocations: 8.625 kB / 435.1 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.4095, allocations: 2.078 MB / 437.2 MB, free: 32.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.647e-06/0.4095, allocations: 1.688 kB / 437.2 MB, free: 32.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.4101, allocations: 138.2 kB / 437.3 MB, free: 32.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.4112, allocations: 292.7 kB / 437.6 MB, free: 32.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.4112, allocations: 21.38 kB / 437.6 MB, free: 32.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004308/0.4156, allocations: 3.037 MB / 440.6 MB, free: 30.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4156, allocations: 0 / 440.6 MB, free: 30.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.4178, allocations: 1.146 MB / 441.8 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003967/0.4182, allocations: 223.2 kB / 442 MB, free: 29.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.4183, allocations: 20.61 kB / 442 MB, free: 29.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004174/0.4187, allocations: 43.27 kB / 442.1 MB, free: 29.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.4189, allocations: 73.31 kB / 442.1 MB, free: 29.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/0.419, allocations: 23.08 kB / 442.2 MB, free: 29.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005367/0.4195, allocations: 343.4 kB / 442.5 MB, free: 29.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4196, allocations: 0 / 442.5 MB, free: 29.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001247/0.4208, allocations: 321 kB / 442.8 MB, free: 29.43 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.002922/0.4237, allocations: 1.785 MB / 444.6 MB, free: 28.29 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.002258/0.426, allocations: 1.149 MB / 445.8 MB, free: 27.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.426, allocations: 0 / 445.8 MB, free: 27.66 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.001194/0.4272, allocations: 0.8226 MB / 446.6 MB, free: 27.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005262/0.4278, allocations: 81.92 kB / 446.7 MB, free: 27.14 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.007276/0.435, allocations: 6.409 MB / 453.1 MB, free: 22.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.4354, allocations: 0.9838 MB / 454 MB, free: 22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004233/0.4359, allocations: 93.61 kB / 454.1 MB, free: 21.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.4362, allocations: 280.5 kB / 454.4 MB, free: 21.75 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4362, allocations: 4 kB / 454.4 MB, free: 21.75 MB / 318.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).