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.001016/0.001016, allocations: 96.42 kB / 15.7 MB, free: 472 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.00157/0.00157, allocations: 179.3 kB / 16.57 MB, free: 6.395 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.827/1.827, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06078/0.06078, allocations: 14.16 MB / 285.2 MB, free: 7.148 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.000516/0.000516, allocations: 23.98 kB / 346.9 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1153, allocations: 51.1 MB / 398 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB): time 0.009813/0.1252, allocations: 9.87 MB / 407.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008664/0.1339, allocations: 4.699 MB / 412.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001861/0.1358, allocations: 39.81 kB / 412.6 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.1375, allocations: 477.4 kB / 413.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006253/0.1438, allocations: 2.059 MB / 415.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1454, allocations: 494.1 kB / 415.6 MB, free: 15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005514/0.1509, allocations: 2.589 MB / 418.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005324/0.1515, allocations: 237.5 kB / 418.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.1535, allocations: 0.9887 MB / 419.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/0.155, allocations: 0.9262 MB / 420.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.1551, allocations: 48 kB / 420.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.1564, allocations: 383.6 kB / 420.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.1566, allocations: 198.9 kB / 421 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004896/0.1571, allocations: 376.8 kB / 421.3 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00199/0.1591, allocations: 1.711 MB / 423 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1591, allocations: 0 / 423 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1591, allocations: 8 kB / 423 MB, free: 7.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.1591, allocations: 0 / 423 MB, free: 7.523 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.007717/0.1668, allocations: 2.541 MB / 425.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.1669, allocations: 8.031 kB / 425.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003943/0.1673, allocations: 206.8 kB / 425.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/0.1685, allocations: 285.7 kB / 426.1 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002311/0.1709, allocations: 1.027 MB / 427.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.1711, allocations: 194.1 kB / 427.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/0.1713, allocations: 144 kB / 427.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/0.1739, allocations: 1.428 MB / 428.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.1739, allocations: 0 / 428.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.174, allocations: 64 kB / 428.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.1741, allocations: 36 kB / 429 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.235/0.4091, allocations: 1.387 MB / 430.3 MB, free: 35.41 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.01053/0.4197, allocations: 8.993 MB / 439.3 MB, free: 28.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/0.4223, allocations: 1.539 MB / 440.9 MB, free: 28.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.455e-05/0.4225, allocations: 21.28 kB / 440.9 MB, free: 28.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001387/0.4238, allocations: 1.201 MB / 442.1 MB, free: 27.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=171): time 3.166e-06/0.4239, allocations: 0 / 442.1 MB, free: 27.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=171): time 0.009453/0.4333, allocations: 3.353 MB / 445.4 MB, free: 26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/0.4336, allocations: 0.5413 MB / 446 MB, free: 25.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.4348, allocations: 0.7795 MB / 446.8 MB, free: 25.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.4349, allocations: 66.02 kB / 446.8 MB, free: 24.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004806/0.4354, allocations: 0.5868 MB / 447.4 MB, free: 24.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005227/0.4359, allocations: 0.5496 MB / 448 MB, free: 24.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/0.436, allocations: 33.72 kB / 448 MB, free: 24.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4361, allocations: 361.5 kB / 448.4 MB, free: 23.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007906/0.4369, allocations: 442.4 kB / 448.8 MB, free: 23.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009391/0.4379, allocations: 0.683 MB / 449.5 MB, free: 23.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008492/0.4387, allocations: 0.6251 MB / 450.1 MB, free: 22.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4387, allocations: 1.469 kB / 450.1 MB, free: 22.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003489/0.4422, allocations: 1.933 MB / 452 MB, free: 21.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.289e-05/0.4423, allocations: 134.7 kB / 452.2 MB, free: 21.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.4423, allocations: 6.625 kB / 452.2 MB, free: 21.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.4438, allocations: 456.4 kB / 452.6 MB, free: 21.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4451, allocations: 316.9 kB / 452.9 MB, free: 21.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007406/0.4525, allocations: 4.177 MB / 457.1 MB, free: 18.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.4544, allocations: 108.3 kB / 457.2 MB, free: 18.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.4545, allocations: 55.38 kB / 457.3 MB, free: 18.49 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.0008237/0.4553, allocations: 425.5 kB / 457.7 MB, free: 18.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.4556, allocations: 153.2 kB / 457.8 MB, free: 18.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/0.4587, allocations: 1.896 MB / 459.7 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.4587, allocations: 15.88 kB / 459.7 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4587, allocations: 128 / 459.7 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.4587, allocations: 11.97 kB / 459.7 MB, free: 16.94 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004887/0.4636, allocations: 3.431 MB / 463.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4637, allocations: 3.938 kB / 463.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.4648, allocations: 266.7 kB / 463.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.466, allocations: 430.2 kB / 463.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.788e-05/0.4661, allocations: 34.31 kB / 463.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.4711, allocations: 4.096 MB / 468 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4711, allocations: 0 / 468 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004097/0.4752, allocations: 3.306 MB / 471.3 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/0.4758, allocations: 335.1 kB / 471.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.476, allocations: 32 kB / 471.7 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007197/0.4767, allocations: 79.52 kB / 471.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.4769, allocations: 138.8 kB / 471.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.136e-05/0.477, allocations: 47.98 kB / 471.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005365/0.4776, allocations: 0.5166 MB / 472.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4776, allocations: 0 / 472.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001469/0.479, allocations: 0.5572 MB / 473 MB, free: 5.281 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.003008/0.4821, allocations: 2.645 MB / 475.6 MB, free: 2.598 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.002823/0.4849, allocations: 2.001 MB / 477.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4849, allocations: 3.938 kB / 477.6 MB, free: 0.5352 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.002171/0.4871, allocations: 1.385 MB / 479 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009644/0.4881, allocations: 140.1 kB / 479.2 MB, free: 14.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 linear, non-linear and system jacobian parts: time 0.01696/0.505, allocations: 12.32 MB / 491.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009697/0.506, allocations: 1.278 MB / 492.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008819/0.5069, allocations: 182.7 kB / 492.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007078/0.5076, allocations: 0.5305 MB / 493.5 MB, free: 256 kB / 334.1 MB Notification: Performance of SimCode: time 1.663e-06/0.5076, allocations: 0 / 493.5 MB, free: 256 kB / 334.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).