Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.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.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",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.0009497/0.0009497, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001159/0.001159, allocations: 172.7 kB / 15.95 MB, free: 208 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.532/1.532, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05833/0.05833, allocations: 14.17 MB / 284.6 MB, free: 7.133 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.0005336/0.0005337, allocations: 23.94 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1035, allocations: 51.11 MB / 397.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.006221/0.1097, allocations: 6.678 MB / 404.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00564/0.1154, allocations: 3.322 MB / 407.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008611/0.1163, allocations: 23.88 kB / 407.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00093/0.1173, allocations: 310.4 kB / 407.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.1207, allocations: 1.403 MB / 409.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008069/0.1215, allocations: 414.4 kB / 409.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002854/0.1244, allocations: 1.926 MB / 411.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.1247, allocations: 114.5 kB / 411.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008739/0.1256, allocations: 0.5327 MB / 412.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.1263, allocations: 0.5329 MB / 412.6 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.182e-05/0.1264, allocations: 31.98 kB / 412.7 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009126/0.1273, allocations: 339.6 kB / 413 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1274, allocations: 107.3 kB / 413.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.1277, allocations: 225.2 kB / 413.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.1288, allocations: 1.033 MB / 414.3 MB, free: 15.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1288, allocations: 4 kB / 414.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1288, allocations: 4 kB / 414.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.1289, allocations: 0 / 414.4 MB, free: 15.58 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004287/0.1332, allocations: 1.558 MB / 415.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.1332, allocations: 8.031 kB / 415.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002009/0.1334, allocations: 130.7 kB / 416.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000575/0.134, allocations: 158.7 kB / 416.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.1352, allocations: 0.652 MB / 416.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.1354, allocations: 99.69 kB / 417 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1355, allocations: 76 kB / 417 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1367, allocations: 0.8061 MB / 417.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.1367, allocations: 7.938 kB / 417.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.092e-05/0.1368, allocations: 32 kB / 417.9 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.1368, allocations: 23.94 kB / 417.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.1381, allocations: 0.7611 MB / 418.7 MB, free: 11.11 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.005077/0.1432, allocations: 4.934 MB / 423.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.1448, allocations: 0.951 MB / 424.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.1453, allocations: 328.8 kB / 424.9 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.189e-05/0.1453, allocations: 9 kB / 424.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008262/0.1462, allocations: 0.6494 MB / 425.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=92): time 2.625e-06/0.1462, allocations: 0 / 425.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=92): time 0.005043/0.1512, allocations: 1.881 MB / 427.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/0.1514, allocations: 307.6 kB / 427.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005828/0.152, allocations: 0.4951 MB / 428.2 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/0.1521, allocations: 45.7 kB / 428.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003068/0.1524, allocations: 364.3 kB / 428.6 MB, free: 420 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.1526, allocations: 303.6 kB / 428.9 MB, free: 112 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.1527, allocations: 16 kB / 428.9 MB, free: 96 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.2048/0.3575, allocations: 386.6 kB / 429.3 MB, free: 36.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007059/0.3583, allocations: 232.2 kB / 429.5 MB, free: 36.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005521/0.3588, allocations: 378 kB / 429.9 MB, free: 36.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.3594, allocations: 344.7 kB / 430.2 MB, free: 36.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3594, allocations: 1.5 kB / 430.2 MB, free: 36.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002298/0.3617, allocations: 1.102 MB / 431.3 MB, free: 36.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.475e-05/0.3618, allocations: 68.86 kB / 431.4 MB, free: 36.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3618, allocations: 11.78 kB / 431.4 MB, free: 36.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.3629, allocations: 290.7 kB / 431.7 MB, free: 36.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006396/0.3635, allocations: 168.1 kB / 431.9 MB, free: 36.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/0.3679, allocations: 3.019 MB / 434.9 MB, free: 34.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/0.3686, allocations: 53.84 kB / 434.9 MB, free: 34.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/0.3687, allocations: 37.61 kB / 435 MB, free: 34.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 14 (transmissionLine.breakerStatusInternalB,transmissionLine.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.transmissionLine.breakerStatus,transmissionLine.breakerStatus,$PRE.transmissionLine.breakerStatusInternalA,$PRE.transmissionLine.breakerStatusInternalB) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * 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 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004408/0.3691, allocations: 276.3 kB / 435.2 MB, free: 34.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.3692, allocations: 84.31 kB / 435.3 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.3712, allocations: 1.093 MB / 436.4 MB, free: 33.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3713, allocations: 7.344 kB / 436.4 MB, free: 33.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.3713, allocations: 2.047 kB / 436.4 MB, free: 33.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3713, allocations: 3.891 kB / 436.4 MB, free: 33.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003224/0.3745, allocations: 2.081 MB / 438.5 MB, free: 32.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3745, allocations: 0.875 kB / 438.5 MB, free: 32.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.3751, allocations: 135.6 kB / 438.6 MB, free: 32.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009721/0.3761, allocations: 290.4 kB / 438.9 MB, free: 32.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/0.3762, allocations: 17.23 kB / 438.9 MB, free: 32.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004095/0.3803, allocations: 2.949 MB / 441.9 MB, free: 30.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3803, allocations: 0.5 kB / 441.9 MB, free: 30.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.3824, allocations: 1.155 MB / 443 MB, free: 29.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.3828, allocations: 220.5 kB / 443.3 MB, free: 29.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.885e-05/0.3829, allocations: 22.38 kB / 443.3 MB, free: 29.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.3833, allocations: 32.5 kB / 443.3 MB, free: 29.6 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.3835, allocations: 81.8 kB / 443.4 MB, free: 29.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.3835, allocations: 25.83 kB / 443.4 MB, free: 29.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005754/0.3841, allocations: 343.8 kB / 443.7 MB, free: 29.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3841, allocations: 1.125 kB / 443.7 MB, free: 29.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001536/0.3857, allocations: 322.6 kB / 444.1 MB, free: 29.38 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: 9 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,transmissionLine.breakerStatus) * Number of discrete states: 9 (transmissionLine.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002626/0.3883, allocations: 1.784 MB / 445.8 MB, free: 28.24 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.002444/0.3908, allocations: 1.149 MB / 447 MB, free: 27.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3908, allocations: 0 / 447 MB, free: 27.62 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.001105/0.3919, allocations: 0.8253 MB / 447.8 MB, free: 27.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006443/0.3925, allocations: 101.3 kB / 447.9 MB, free: 27.08 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.006702/0.3993, allocations: 4.406 MB / 452.3 MB, free: 24.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.3996, allocations: 0.9687 MB / 453.3 MB, free: 24 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004106/0.4, allocations: 92.45 kB / 453.4 MB, free: 23.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.4003, allocations: 285.1 kB / 453.7 MB, free: 23.75 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4003, allocations: 0 / 453.7 MB, free: 23.75 MB / 318.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).