Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB,fileNamePrefix="PowerGrids_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.0009728/0.0009729, allocations: 99.78 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.0009456/0.0009456, allocations: 177.3 kB / 15.95 MB, free: 216 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.721/1.721, allocations: 205.4 MB / 222.1 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.06461/0.06461, allocations: 14.16 MB / 284.5 MB, free: 7.141 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.0005007/0.0005007, allocations: 16.22 kB / 346.2 MB, free: 19.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1128, allocations: 51.11 MB / 397.4 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB): time 0.01087/0.1237, allocations: 9.861 MB / 407.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008291/0.1321, allocations: 4.703 MB / 411.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.1339, allocations: 39.81 kB / 412 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.1355, allocations: 477.4 kB / 412.4 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005752/0.1413, allocations: 2.065 MB / 414.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.1425, allocations: 486.7 kB / 415 MB, free: 15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005103/0.1476, allocations: 2.581 MB / 417.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.1482, allocations: 241.4 kB / 417.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.1504, allocations: 0.9926 MB / 418.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.1517, allocations: 0.9223 MB / 419.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.1518, allocations: 48 kB / 419.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.1531, allocations: 387.6 kB / 420.1 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.1533, allocations: 202.9 kB / 420.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004743/0.1538, allocations: 372.8 kB / 420.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002126/0.1559, allocations: 1.714 MB / 422.4 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1559, allocations: 4 kB / 422.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1559, allocations: 4 kB / 422.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.156, allocations: 0 / 422.4 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.007921/0.1639, allocations: 2.529 MB / 424.9 MB, free: 4.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.164, allocations: 12.02 kB / 424.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004382/0.1644, allocations: 206.8 kB / 425.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/0.1657, allocations: 285.7 kB / 425.4 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.1684, allocations: 1.034 MB / 426.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.1686, allocations: 190.1 kB / 426.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.1689, allocations: 140 kB / 426.8 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.1717, allocations: 1.432 MB / 428.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.1717, allocations: 3.938 kB / 428.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/0.1719, allocations: 60 kB / 428.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-05/0.1719, allocations: 43.94 kB / 428.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2282/0.4001, allocations: 1.387 MB / 429.7 MB, free: 35.44 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.01122/0.4114, allocations: 8.987 MB / 438.7 MB, free: 28.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002821/0.4142, allocations: 1.545 MB / 440.2 MB, free: 28.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.049e-05/0.4143, allocations: 16.91 kB / 440.3 MB, free: 28.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/0.4159, allocations: 1.202 MB / 441.5 MB, free: 27.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=171): time 3.617e-06/0.4159, allocations: 1.406 kB / 441.5 MB, free: 27.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=171): time 0.0105/0.4264, allocations: 3.354 MB / 444.8 MB, free: 26.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001991/0.4266, allocations: 0.541 MB / 445.4 MB, free: 25.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.4279, allocations: 0.7802 MB / 446.1 MB, free: 25.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.428, allocations: 57.73 kB / 446.2 MB, free: 25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/0.4286, allocations: 0.588 MB / 446.8 MB, free: 24.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005336/0.4291, allocations: 0.5475 MB / 447.3 MB, free: 24.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/0.4292, allocations: 33.56 kB / 447.4 MB, free: 24.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4294, allocations: 370.8 kB / 447.7 MB, free: 23.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000851/0.4302, allocations: 444.2 kB / 448.2 MB, free: 23.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009132/0.4312, allocations: 0.6785 MB / 448.8 MB, free: 23.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009417/0.4321, allocations: 0.625 MB / 449.5 MB, free: 22.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.4321, allocations: 2.031 kB / 449.5 MB, free: 22.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003767/0.4359, allocations: 1.93 MB / 451.4 MB, free: 21.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.436, allocations: 133.8 kB / 451.5 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.436, allocations: 5.688 kB / 451.5 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/0.4375, allocations: 463.2 kB / 452 MB, free: 21.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.4388, allocations: 316 kB / 452.3 MB, free: 21.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00655/0.4454, allocations: 4.172 MB / 456.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.4473, allocations: 106.9 kB / 456.6 MB, free: 18.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.4474, allocations: 55.44 kB / 456.6 MB, free: 18.52 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.001004/0.4484, allocations: 424.8 kB / 457 MB, free: 18.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.4487, allocations: 153 kB / 457.2 MB, free: 18.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003106/0.4518, allocations: 1.895 MB / 459.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4518, allocations: 17.47 kB / 459.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4518, allocations: 0 / 459.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.4519, allocations: 7.969 kB / 459.1 MB, free: 16.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004754/0.4566, allocations: 3.44 MB / 462.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.4567, allocations: 0 / 462.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.4577, allocations: 264.9 kB / 462.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.4589, allocations: 429 kB / 463.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.18e-05/0.459, allocations: 39.61 kB / 463.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004996/0.464, allocations: 4.091 MB / 467.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.464, allocations: 0 / 467.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00307/0.4671, allocations: 1.939 MB / 469.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/0.4677, allocations: 327.2 kB / 469.6 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.4679, allocations: 39.98 kB / 469.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007125/0.4686, allocations: 75.52 kB / 469.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/0.4689, allocations: 142.5 kB / 469.9 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.309e-05/0.469, allocations: 47.98 kB / 469.9 MB, free: 7.789 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006115/0.4696, allocations: 0.5166 MB / 470.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4696, allocations: 0 / 470.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001488/0.4711, allocations: 0.5572 MB / 471 MB, free: 6.707 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.003193/0.4743, allocations: 2.64 MB / 473.6 MB, free: 4.035 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.002818/0.4771, allocations: 1.997 MB / 475.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4771, allocations: 0 / 475.6 MB, free: 1.98 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.001647/0.4788, allocations: 1.391 MB / 477 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.4797, allocations: 143.2 kB / 477.2 MB, free: 424 kB / 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.01758/0.4973, allocations: 11.52 MB / 488.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.4984, allocations: 1.234 MB / 489.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009317/0.4993, allocations: 179.5 kB / 490.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007071/0.5, allocations: 0.5275 MB / 490.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5, allocations: 0 / 490.6 MB, free: 2.547 MB / 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).