Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB",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.001139/0.001139, allocations: 92.86 kB / 15.71 MB, free: 464 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.001664/0.001664, allocations: 178.1 kB / 16.59 MB, free: 6.398 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.666/1.666, allocations: 205.4 MB / 222.8 MB, free: 5.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06761/0.06761, allocations: 14.17 MB / 285.2 MB, free: 7.07 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.0005816/0.0005817, allocations: 23.42 kB / 346.9 MB, free: 19.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1375, allocations: 51.11 MB / 398 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB): time 0.01273/0.1503, allocations: 10.88 MB / 408.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.1609, allocations: 4.725 MB / 413.6 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.1633, allocations: 35.88 kB / 413.7 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.1664, allocations: 493.3 kB / 414.2 MB, free: 428 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00816/0.1746, allocations: 1.907 MB / 416.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.1764, allocations: 0.4919 MB / 416.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.1832, allocations: 3.427 MB / 420 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009491/0.1842, allocations: 229.5 kB / 420.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002716/0.187, allocations: 0.941 MB / 421.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.1894, allocations: 0.9647 MB / 422.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004756/0.1898, allocations: 48 kB / 422.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.1919, allocations: 387.7 kB / 422.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004743/0.1924, allocations: 206.8 kB / 422.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.1936, allocations: 376.8 kB / 423.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003427/0.197, allocations: 1.734 MB / 424.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1971, allocations: 0 / 424.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1971, allocations: 0 / 424.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.761e-05/0.1972, allocations: 0 / 424.8 MB, free: 5.699 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: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.009075/0.2062, allocations: 2.541 MB / 427.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.2063, allocations: 12.03 kB / 427.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007423/0.2071, allocations: 206.8 kB / 427.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.2087, allocations: 289.7 kB / 427.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002872/0.2116, allocations: 1.027 MB / 428.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002596/0.2119, allocations: 190.1 kB / 429.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/0.2123, allocations: 143.9 kB / 429.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.304/0.5163, allocations: 1.44 MB / 430.7 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.148e-05/0.5164, allocations: 4.688 kB / 430.7 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.5166, allocations: 59.5 kB / 430.7 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/0.5166, allocations: 38.59 kB / 430.8 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.5199, allocations: 1.389 MB / 432.2 MB, free: 35.14 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.01109/0.531, allocations: 9.003 MB / 441.2 MB, free: 27.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.5339, allocations: 1.533 MB / 442.7 MB, free: 27.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.5352, allocations: 0.5984 MB / 443.3 MB, free: 26.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.5353, allocations: 20.02 kB / 443.3 MB, free: 26.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00187/0.5372, allocations: 1.208 MB / 444.5 MB, free: 26.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=171): time 3.938e-06/0.5372, allocations: 0.7656 kB / 444.5 MB, free: 26.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=171): time 0.01138/0.5486, allocations: 3.285 MB / 447.8 MB, free: 25.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002988/0.5489, allocations: 0.5422 MB / 448.3 MB, free: 24.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.5503, allocations: 0.7742 MB / 449.1 MB, free: 24.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.5505, allocations: 60.23 kB / 449.2 MB, free: 24.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005919/0.5511, allocations: 0.5918 MB / 449.8 MB, free: 23.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006142/0.5517, allocations: 0.5462 MB / 450.3 MB, free: 23.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.416e-05/0.5518, allocations: 36.86 kB / 450.4 MB, free: 23.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.5519, allocations: 366.8 kB / 450.7 MB, free: 22.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008373/0.5527, allocations: 444.8 kB / 451.1 MB, free: 22.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.5538, allocations: 0.6817 MB / 451.8 MB, free: 22.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009162/0.5547, allocations: 0.6254 MB / 452.5 MB, free: 21.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.5547, allocations: 1.594 kB / 452.5 MB, free: 21.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.004037/0.5588, allocations: 1.937 MB / 454.4 MB, free: 20.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.5589, allocations: 134.1 kB / 454.5 MB, free: 20.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.5589, allocations: 5.438 kB / 454.5 MB, free: 20.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001635/0.5606, allocations: 462.2 kB / 455 MB, free: 20.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.562, allocations: 313.3 kB / 455.3 MB, free: 20.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007843/0.5699, allocations: 4.035 MB / 459.3 MB, free: 17.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.572, allocations: 106.8 kB / 459.4 MB, free: 17.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.5722, allocations: 59.62 kB / 459.5 MB, free: 17.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 28 (transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalA,transmissionLine1.breakerStatusInternalB,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$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.001102/0.5734, allocations: 420.8 kB / 459.9 MB, free: 16.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/0.5737, allocations: 153.4 kB / 460 MB, free: 16.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004198/0.5779, allocations: 1.898 MB / 461.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.578, allocations: 13.62 kB / 462 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.578, allocations: 7.453 kB / 462 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/0.578, allocations: 7.969 kB / 462 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007082/0.5851, allocations: 3.425 MB / 465.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.5852, allocations: 4.078 kB / 465.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/0.5862, allocations: 271.7 kB / 465.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.5874, allocations: 428.4 kB / 466.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.5875, allocations: 36 kB / 466.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005264/0.5928, allocations: 3.944 MB / 470.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5928, allocations: 0 / 470.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/0.5978, allocations: 3.309 MB / 473.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007211/0.5985, allocations: 335.1 kB / 473.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003302/0.5989, allocations: 37.97 kB / 473.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009401/0.5998, allocations: 71.58 kB / 473.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002933/0.6001, allocations: 134.3 kB / 473.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.6002, allocations: 55.94 kB / 474 MB, free: 4.285 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007891/0.601, allocations: 0.5127 MB / 474.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.601, allocations: 0 / 474.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002381/0.6034, allocations: 0.562 MB / 475.1 MB, free: 3.199 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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine1.breakerStatusInternalA,transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatus,transmissionLine2.breakerStatusInternalA,transmissionLine2.breakerStatusInternalB) * Number of discrete states: 22 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine1.breakerStatusInternalB,transmissionLine1.breakerStatusInternalA) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.00366/0.6071, allocations: 2.634 MB / 477.7 MB, free: 0.5273 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.003629/0.6108, allocations: 2 MB / 479.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6108, allocations: 0 / 479.7 MB, free: 14.47 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.002216/0.613, allocations: 1.392 MB / 481.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.6145, allocations: 168.3 kB / 481.3 MB, free: 12.88 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.02551/0.64, allocations: 8.59 MB / 489.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0018/0.6419, allocations: 1.247 MB / 491.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.6432, allocations: 182.5 kB / 491.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009445/0.6441, allocations: 0.5266 MB / 491.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6442, allocations: 4 kB / 491.8 MB, free: 1.957 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).