Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA",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.0009859/0.000986, allocations: 99.86 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.0009082/0.0009082, 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.703/1.703, allocations: 205.4 MB / 222.1 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.06103/0.06103, allocations: 14.16 MB / 284.5 MB, free: 7.145 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.0005167/0.0005167, allocations: 12.22 kB / 346.2 MB, free: 19.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1098, allocations: 51.13 MB / 397.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA): time 0.009584/0.1194, allocations: 9.842 MB / 407.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008593/0.128, allocations: 4.691 MB / 411.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.1298, allocations: 35.88 kB / 411.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.1313, allocations: 477.4 kB / 412.4 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005584/0.1369, allocations: 2.057 MB / 414.5 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.1381, allocations: 490.2 kB / 414.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005381/0.1434, allocations: 2.584 MB / 417.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.1441, allocations: 217.2 kB / 417.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001857/0.1459, allocations: 0.9887 MB / 418.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.1471, allocations: 0.9262 MB / 419.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1472, allocations: 48 kB / 419.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.1484, allocations: 375.7 kB / 420.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.1485, allocations: 202.9 kB / 420.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004185/0.149, allocations: 376.8 kB / 420.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.151, allocations: 1.711 MB / 422.3 MB, free: 7.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.151, allocations: 0 / 422.3 MB, free: 7.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.151, allocations: 4 kB / 422.3 MB, free: 7.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.705e-05/0.151, allocations: 0 / 422.3 MB, free: 7.594 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.007737/0.1588, allocations: 2.521 MB / 424.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.1589, allocations: 15.97 kB / 424.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003622/0.1592, allocations: 206.7 kB / 425.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.1604, allocations: 277.8 kB / 425.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.1625, allocations: 1.031 MB / 426.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.1627, allocations: 186.1 kB / 426.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/0.1629, allocations: 140 kB / 426.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/0.1654, allocations: 1.415 MB / 428.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.1655, allocations: 3.938 kB / 428.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.1656, allocations: 64 kB / 428.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.207e-05/0.1656, allocations: 32 kB / 428.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002265/0.1679, allocations: 1.38 MB / 429.6 MB, free: 100 kB / 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.2315/0.3994, allocations: 8.862 MB / 438.4 MB, free: 28.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.4022, allocations: 1.529 MB / 440 MB, free: 28.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.4023, allocations: 20.72 kB / 440 MB, free: 28.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001646/0.404, allocations: 1.191 MB / 441.2 MB, free: 27.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 4.839e-06/0.404, allocations: 0 / 441.2 MB, free: 27.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009651/0.4137, allocations: 3.355 MB / 444.5 MB, free: 26.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/0.4139, allocations: 0.5415 MB / 445.1 MB, free: 25.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.4151, allocations: 0.7828 MB / 445.9 MB, free: 25.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.759e-05/0.4152, allocations: 61.2 kB / 445.9 MB, free: 25.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004487/0.4156, allocations: 0.5798 MB / 446.5 MB, free: 24.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004806/0.4161, allocations: 0.5469 MB / 447.1 MB, free: 24.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.007e-05/0.4162, allocations: 34.97 kB / 447.1 MB, free: 24.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4163, allocations: 362.3 kB / 447.4 MB, free: 23.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008103/0.4171, allocations: 448.6 kB / 447.9 MB, free: 23.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008518/0.418, allocations: 0.6812 MB / 448.6 MB, free: 23.22 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008569/0.4189, allocations: 0.6291 MB / 449.2 MB, free: 22.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4189, allocations: 2.094 kB / 449.2 MB, free: 22.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.00347/0.4224, allocations: 1.935 MB / 451.1 MB, free: 21.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.039e-05/0.4225, allocations: 128.6 kB / 451.3 MB, free: 21.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.4225, allocations: 9.203 kB / 451.3 MB, free: 21.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.4239, allocations: 460.8 kB / 451.7 MB, free: 21.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.4251, allocations: 322.7 kB / 452 MB, free: 21.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006057/0.4311, allocations: 4.17 MB / 456.2 MB, free: 18.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4326, allocations: 108.2 kB / 456.3 MB, free: 18.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.163e-05/0.4327, allocations: 59.41 kB / 456.4 MB, free: 18.62 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 (transmissionLine2.breakerStatusInternalA,transmissionLine2.breakerStatusInternalB,transmissionLine1.breakerStatusInternalB,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine2.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$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.0007495/0.4334, allocations: 419.7 kB / 456.8 MB, free: 18.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.4337, allocations: 153.5 kB / 456.9 MB, free: 18.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.4365, allocations: 1.888 MB / 458.8 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.4366, allocations: 15.84 kB / 458.8 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4366, allocations: 0 / 458.8 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4366, allocations: 7.969 kB / 458.8 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004811/0.4414, allocations: 3.425 MB / 462.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4414, allocations: 0 / 462.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.4425, allocations: 270.3 kB / 462.5 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.4437, allocations: 428.2 kB / 462.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.444e-05/0.4438, allocations: 35.64 kB / 463 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005181/0.449, allocations: 4.083 MB / 467.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.4491, allocations: 0 / 467.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003153/0.4522, allocations: 1.927 MB / 469 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007298/0.453, allocations: 331.1 kB / 469.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.4532, allocations: 32 kB / 469.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007243/0.4539, allocations: 71.83 kB / 469.4 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/0.4542, allocations: 129.7 kB / 469.5 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.012e-05/0.4543, allocations: 48 kB / 469.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006357/0.4549, allocations: 0.5285 MB / 470.1 MB, free: 7.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4549, allocations: 3.938 kB / 470.1 MB, free: 7.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001582/0.4565, allocations: 0.5542 MB / 470.7 MB, free: 6.941 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,transmissionLine2.breakerStatus,transmissionLine2.breakerStatusInternalA) * Number of discrete states: 19 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * 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.003201/0.4597, allocations: 2.614 MB / 473.3 MB, free: 4.301 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.002986/0.4627, allocations: 1.993 MB / 475.3 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4627, allocations: 3.938 kB / 475.3 MB, free: 2.246 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.001606/0.4644, allocations: 1.396 MB / 476.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008966/0.4653, allocations: 144.9 kB / 476.8 MB, free: 0.6758 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.01478/0.4801, allocations: 11.65 MB / 488.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008742/0.481, allocations: 1.226 MB / 489.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000875/0.4819, allocations: 177.9 kB / 489.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006276/0.4825, allocations: 0.5227 MB / 490.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4825, allocations: 0 / 490.4 MB, free: 2.684 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).