Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",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.0009624/0.0009624, allocations: 99.7 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.0009281/0.0009282, 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.704/1.704, 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.05989/0.05989, allocations: 14.16 MB / 284.5 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.0005325/0.0005326, allocations: 16 kB / 346.2 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1104, allocations: 51.12 MB / 397.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB): time 0.009783/0.1203, allocations: 9.838 MB / 407.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008915/0.1293, allocations: 4.691 MB / 411.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001702/0.131, allocations: 35.88 kB / 411.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.1325, allocations: 477.4 kB / 412.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.1385, allocations: 2.059 MB / 414.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.1397, allocations: 498.6 kB / 414.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004895/0.1447, allocations: 2.578 MB / 417.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005024/0.1452, allocations: 217.2 kB / 417.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002007/0.1472, allocations: 0.9926 MB / 418.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1485, allocations: 0.9223 MB / 419.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.1487, allocations: 48 kB / 419.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.1499, allocations: 383.7 kB / 420.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.1501, allocations: 198.9 kB / 420.3 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005175/0.1507, allocations: 372.8 kB / 420.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002121/0.1528, allocations: 1.711 MB / 422.3 MB, free: 7.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1528, allocations: 0 / 422.3 MB, free: 7.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1528, allocations: 4 kB / 422.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.1528, allocations: 0 / 422.3 MB, free: 7.582 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.008037/0.1609, allocations: 2.529 MB / 424.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.161, allocations: 8.031 kB / 424.9 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004321/0.1614, allocations: 206.7 kB / 425.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001121/0.1625, allocations: 281.8 kB / 425.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.1648, allocations: 1.031 MB / 426.4 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.165, allocations: 186.1 kB / 426.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/0.1652, allocations: 136 kB / 426.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.1677, allocations: 1.411 MB / 428.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.1678, allocations: 3.938 kB / 428.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.1679, allocations: 60 kB / 428.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.1679, allocations: 43.98 kB / 428.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/0.1702, allocations: 1.384 MB / 429.6 MB, free: 80 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.2311/0.4013, allocations: 8.859 MB / 438.5 MB, free: 28.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.404, allocations: 1.533 MB / 440 MB, free: 28.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.184e-05/0.4041, allocations: 17.7 kB / 440 MB, free: 28.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.4056, allocations: 1.188 MB / 441.2 MB, free: 27.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 3.476e-06/0.4057, allocations: 0 / 441.2 MB, free: 27.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.01087/0.4165, allocations: 3.352 MB / 444.5 MB, free: 26.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002015/0.4168, allocations: 0.5452 MB / 445.1 MB, free: 25.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.4182, allocations: 0.7812 MB / 445.9 MB, free: 25.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.4183, allocations: 58.38 kB / 445.9 MB, free: 25.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004676/0.4188, allocations: 0.5901 MB / 446.5 MB, free: 24.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005093/0.4193, allocations: 0.5396 MB / 447.1 MB, free: 24.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.268e-05/0.4194, allocations: 32.88 kB / 447.1 MB, free: 24.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4195, allocations: 370.5 kB / 447.4 MB, free: 23.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008668/0.4204, allocations: 438.1 kB / 447.9 MB, free: 23.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009224/0.4213, allocations: 0.6838 MB / 448.6 MB, free: 23.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009277/0.4223, allocations: 0.6314 MB / 449.2 MB, free: 22.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.4223, allocations: 2.875 kB / 449.2 MB, free: 22.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.004032/0.4263, allocations: 1.936 MB / 451.1 MB, free: 21.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.4265, allocations: 129.1 kB / 451.3 MB, free: 21.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.4265, allocations: 7.531 kB / 451.3 MB, free: 21.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.428, allocations: 459.2 kB / 451.7 MB, free: 21.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.4295, allocations: 320.6 kB / 452 MB, free: 21.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006933/0.4365, allocations: 4.173 MB / 456.2 MB, free: 18.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.438, allocations: 102.8 kB / 456.3 MB, free: 18.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.026e-05/0.4381, allocations: 61.08 kB / 456.4 MB, free: 18.59 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 (transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$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.0007936/0.4389, allocations: 433.3 kB / 456.8 MB, free: 18.24 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.4392, allocations: 149.5 kB / 456.9 MB, free: 18.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.4422, allocations: 1.876 MB / 458.8 MB, free: 17.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.4422, allocations: 15.78 kB / 458.8 MB, free: 17.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4422, allocations: 0 / 458.8 MB, free: 17.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.4422, allocations: 11.97 kB / 458.8 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/0.4469, allocations: 3.424 MB / 462.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.447, allocations: 3.984 kB / 462.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.448, allocations: 265 kB / 462.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.4491, allocations: 430.3 kB / 462.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-05/0.4492, allocations: 35.2 kB / 463 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.4542, allocations: 4.085 MB / 467.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4543, allocations: 0 / 467.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002974/0.4572, allocations: 1.931 MB / 469 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/0.4578, allocations: 331.1 kB / 469.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.458, allocations: 36 kB / 469.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006956/0.4587, allocations: 71.58 kB / 469.4 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002582/0.459, allocations: 126.3 kB / 469.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.915e-05/0.4591, allocations: 47.98 kB / 469.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005918/0.4597, allocations: 0.5285 MB / 470.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4597, allocations: 3.938 kB / 470.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001449/0.4611, allocations: 0.5581 MB / 470.7 MB, free: 6.891 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,transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatus) * Number of discrete states: 19 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine1.breakerStatusInternalB) * 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.003069/0.4642, allocations: 2.61 MB / 473.3 MB, free: 4.25 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.003046/0.4673, allocations: 1.988 MB / 475.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4673, allocations: 16.31 kB / 475.3 MB, free: 2.188 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.001661/0.4689, allocations: 1.387 MB / 476.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009354/0.4699, allocations: 136.9 kB / 476.8 MB, free: 0.6328 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.01788/0.4878, allocations: 11.65 MB / 488.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.4889, allocations: 1.234 MB / 489.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009012/0.4898, allocations: 170 kB / 489.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007724/0.4906, allocations: 0.5266 MB / 490.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4906, allocations: 0 / 490.4 MB, free: 2.637 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).