Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",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.0008866/0.0008868, 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.001093/0.001093, allocations: 183.1 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.671/1.671, allocations: 205.4 MB / 222.8 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06539/0.06539, allocations: 14.17 MB / 285.2 MB, free: 7.137 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.0005309/0.0005309, allocations: 18.66 kB / 346.9 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1365, allocations: 51.12 MB / 398 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB): time 0.01152/0.1481, allocations: 10.86 MB / 408.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009754/0.1579, allocations: 4.721 MB / 413.6 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001944/0.1599, allocations: 39.81 kB / 413.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.1617, allocations: 485.4 kB / 414.1 MB, free: 464 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006483/0.1682, allocations: 1.908 MB / 416 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.1696, allocations: 498.7 kB / 416.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006254/0.1759, allocations: 3.421 MB / 419.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007635/0.1767, allocations: 217.2 kB / 420.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.1795, allocations: 0.9294 MB / 421.1 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0016/0.1811, allocations: 0.9647 MB / 422.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.1813, allocations: 48 kB / 422.1 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.1828, allocations: 383.7 kB / 422.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.1831, allocations: 206.8 kB / 422.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005976/0.1837, allocations: 372.8 kB / 423 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002938/0.1866, allocations: 1.738 MB / 424.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/0.1867, allocations: 4 kB / 424.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.117e-06/0.1867, allocations: 0 / 424.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.1867, allocations: 0 / 424.8 MB, free: 5.77 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: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.007592/0.1943, allocations: 2.529 MB / 427.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.1944, allocations: 8.031 kB / 427.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003337/0.1947, allocations: 210.7 kB / 427.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.1958, allocations: 281.8 kB / 427.8 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.198, allocations: 1.027 MB / 428.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/0.1983, allocations: 190 kB / 429 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.1985, allocations: 136 kB / 429.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2783/0.4768, allocations: 1.416 MB / 430.6 MB, free: 35.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.4769, allocations: 8.219 kB / 430.6 MB, free: 35.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/0.4771, allocations: 59.38 kB / 430.6 MB, free: 35.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.958e-05/0.4771, allocations: 33.62 kB / 430.7 MB, free: 35.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003109/0.4802, allocations: 1.382 MB / 432 MB, free: 35.27 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.01159/0.4919, allocations: 8.863 MB / 440.9 MB, free: 28.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/0.4949, allocations: 1.534 MB / 442.4 MB, free: 27.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009374/0.4959, allocations: 0.5936 MB / 443 MB, free: 27.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.496, allocations: 20.08 kB / 443.1 MB, free: 27.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.4977, allocations: 1.195 MB / 444.2 MB, free: 26.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 5.13e-06/0.4977, allocations: 0 / 444.2 MB, free: 26.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.00954/0.5073, allocations: 3.289 MB / 447.5 MB, free: 25.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/0.5075, allocations: 0.537 MB / 448.1 MB, free: 24.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.5086, allocations: 0.7869 MB / 448.9 MB, free: 24.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.424e-05/0.5087, allocations: 56.89 kB / 448.9 MB, free: 24.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/0.5092, allocations: 0.5903 MB / 449.5 MB, free: 23.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004339/0.5096, allocations: 0.5427 MB / 450.1 MB, free: 23.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-05/0.5097, allocations: 33.22 kB / 450.1 MB, free: 23.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.5098, allocations: 366 kB / 450.4 MB, free: 23.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007697/0.5106, allocations: 442.4 kB / 450.9 MB, free: 22.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.5117, allocations: 0.6876 MB / 451.6 MB, free: 22.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000985/0.5127, allocations: 0.6289 MB / 452.2 MB, free: 22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.5127, allocations: 6.281 kB / 452.2 MB, free: 22 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003628/0.5164, allocations: 1.93 MB / 454.1 MB, free: 20.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.469e-05/0.5165, allocations: 129.9 kB / 454.3 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.5165, allocations: 6.094 kB / 454.3 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/0.5179, allocations: 463.1 kB / 454.7 MB, free: 20.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.5192, allocations: 322.1 kB / 455 MB, free: 20.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/0.525, allocations: 4.037 MB / 459.1 MB, free: 17.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.5263, allocations: 102.9 kB / 459.2 MB, free: 17.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.082e-05/0.5264, allocations: 55.5 kB / 459.2 MB, free: 17.5 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 (transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$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.000785/0.5272, allocations: 420.5 kB / 459.6 MB, free: 17.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/0.5274, allocations: 153.4 kB / 459.8 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/0.5305, allocations: 1.889 MB / 461.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/0.5305, allocations: 16.83 kB / 461.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5305, allocations: 3.953 kB / 461.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.5306, allocations: 7.969 kB / 461.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004861/0.5354, allocations: 3.427 MB / 465.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.5355, allocations: 4.109 kB / 465.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000959/0.5364, allocations: 263.6 kB / 465.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.5375, allocations: 432.4 kB / 465.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-05/0.5376, allocations: 39.98 kB / 465.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005121/0.5427, allocations: 3.93 MB / 469.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5428, allocations: 3.984 kB / 469.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004256/0.547, allocations: 3.298 MB / 473.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00056/0.5476, allocations: 323.2 kB / 473.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.5478, allocations: 36 kB / 473.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.5485, allocations: 71.58 kB / 473.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002695/0.5487, allocations: 134.2 kB / 473.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-05/0.5488, allocations: 47.98 kB / 473.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006319/0.5495, allocations: 0.5207 MB / 474.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5495, allocations: 0 / 474.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001692/0.5512, allocations: 0.5553 MB / 474.7 MB, free: 3.535 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: 19 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatus) * Number of discrete states: 19 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine1.breakerStatusInternalB) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * 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.00318/0.5543, allocations: 2.614 MB / 477.4 MB, free: 0.8867 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.003362/0.5577, allocations: 1.989 MB / 479.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5577, allocations: 0 / 479.4 MB, free: 14.84 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.002185/0.5599, allocations: 1.4 MB / 480.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5611, allocations: 176.7 kB / 480.9 MB, free: 13.23 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.01586/0.577, allocations: 8.551 MB / 489.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.5782, allocations: 1.243 MB / 490.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009591/0.5792, allocations: 185.9 kB / 490.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007453/0.5799, allocations: 0.5227 MB / 491.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5799, allocations: 0 / 491.4 MB, free: 2.359 MB / 334.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). [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).