Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_symb_jac_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.001069/0.001069, allocations: 97.2 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.001135/0.001136, allocations: 177.1 kB / 16.57 MB, free: 6.398 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.817/1.817, 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.06041/0.06041, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.0005718/0.0005719, allocations: 16.2 kB / 346.9 MB, free: 19.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1152, allocations: 51.12 MB / 398 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB): time 0.009565/0.1249, allocations: 9.85 MB / 407.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008871/0.1338, allocations: 4.691 MB / 412.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002174/0.136, allocations: 35.88 kB / 412.6 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.1382, allocations: 477.4 kB / 413 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007786/0.1461, allocations: 2.063 MB / 415.1 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.1478, allocations: 494.4 kB / 415.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007463/0.1552, allocations: 2.57 MB / 418.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008264/0.1561, allocations: 221.2 kB / 418.4 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002727/0.1589, allocations: 0.9887 MB / 419.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.1611, allocations: 0.9262 MB / 420.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000446/0.1616, allocations: 52 kB / 420.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.1636, allocations: 375.7 kB / 420.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003914/0.164, allocations: 194.9 kB / 420.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.1651, allocations: 376.8 kB / 421.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003244/0.1683, allocations: 1.714 MB / 423 MB, free: 7.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1684, allocations: 3.938 kB / 423 MB, free: 7.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1684, allocations: 0 / 423 MB, free: 7.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.244e-05/0.1685, allocations: 4 kB / 423 MB, free: 7.59 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.008907/0.1774, allocations: 2.521 MB / 425.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.1775, allocations: 16.02 kB / 425.5 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004467/0.1779, allocations: 206.7 kB / 425.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.1792, allocations: 281.8 kB / 426 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.1815, allocations: 1.023 MB / 427 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.1817, allocations: 186.1 kB / 427.2 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.1819, allocations: 144 kB / 427.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002303/0.1842, allocations: 1.411 MB / 428.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.1842, allocations: 7.938 kB / 428.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.1843, allocations: 56 kB / 428.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/0.1844, allocations: 36 kB / 428.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002203/0.1866, allocations: 1.384 MB / 430.2 MB, free: 96 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.2467/0.4333, allocations: 8.863 MB / 439.1 MB, free: 28.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/0.4361, allocations: 1.528 MB / 440.6 MB, free: 28.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.341e-05/0.4362, allocations: 21.11 kB / 440.6 MB, free: 28.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001482/0.4377, allocations: 1.188 MB / 441.8 MB, free: 27.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 3.787e-06/0.4377, allocations: 0 / 441.8 MB, free: 27.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009488/0.4472, allocations: 3.35 MB / 445.2 MB, free: 26.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001846/0.4475, allocations: 0.5473 MB / 445.7 MB, free: 25.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.4487, allocations: 0.7826 MB / 446.5 MB, free: 25.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.966e-05/0.4488, allocations: 59.02 kB / 446.6 MB, free: 25.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.4492, allocations: 0.5849 MB / 447.2 MB, free: 24.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004802/0.4497, allocations: 0.5415 MB / 447.7 MB, free: 24.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.162e-05/0.4498, allocations: 32.78 kB / 447.7 MB, free: 24.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4499, allocations: 366.6 kB / 448.1 MB, free: 23.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008038/0.4507, allocations: 445.4 kB / 448.5 MB, free: 23.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000842/0.4516, allocations: 0.681 MB / 449.2 MB, free: 23.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008591/0.4524, allocations: 0.6312 MB / 449.8 MB, free: 22.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.4524, allocations: 2.031 kB / 449.8 MB, free: 22.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003519/0.456, allocations: 1.937 MB / 451.8 MB, free: 21.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.56e-05/0.4561, allocations: 127.6 kB / 451.9 MB, free: 21.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.4561, allocations: 6.969 kB / 451.9 MB, free: 21.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.4575, allocations: 461.8 kB / 452.4 MB, free: 21.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.4588, allocations: 321.1 kB / 452.7 MB, free: 21.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00605/0.4648, allocations: 4.176 MB / 456.8 MB, free: 18.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.4662, allocations: 106.8 kB / 456.9 MB, free: 18.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.809e-05/0.4663, allocations: 55.56 kB / 457 MB, free: 18.63 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.0007726/0.4671, allocations: 428.2 kB / 457.4 MB, free: 18.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.4674, allocations: 152.2 kB / 457.6 MB, free: 18.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.4702, allocations: 1.876 MB / 459.4 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.4702, allocations: 15.75 kB / 459.5 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4703, allocations: 4 kB / 459.5 MB, free: 17.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.4703, allocations: 7.969 kB / 459.5 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004741/0.475, allocations: 3.426 MB / 462.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.475, allocations: 4 kB / 462.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.4767, allocations: 260.6 kB / 463.2 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.4785, allocations: 432.4 kB / 463.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.859e-05/0.4787, allocations: 35.67 kB / 463.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004951/0.4836, allocations: 4.082 MB / 467.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4836, allocations: 4 kB / 467.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/0.4876, allocations: 3.302 MB / 471 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000562/0.4882, allocations: 331.2 kB / 471.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.4884, allocations: 39.95 kB / 471.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.4891, allocations: 63.58 kB / 471.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.4893, allocations: 138.7 kB / 471.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.33e-05/0.4894, allocations: 47.98 kB / 471.6 MB, free: 6.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005543/0.49, allocations: 0.5168 MB / 472.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.49, allocations: 0 / 472.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001661/0.4916, allocations: 0.5581 MB / 472.7 MB, free: 5.535 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.003195/0.4948, allocations: 2.628 MB / 475.3 MB, free: 2.879 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.002813/0.4977, allocations: 1.99 MB / 477.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4977, allocations: 0 / 477.3 MB, free: 0.832 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.001761/0.4994, allocations: 1.395 MB / 478.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008939/0.5003, allocations: 140.8 kB / 478.8 MB, free: 15.27 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.01607/0.5164, allocations: 12.43 MB / 491.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.5175, allocations: 1.274 MB / 492.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009203/0.5184, allocations: 177.9 kB / 492.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006612/0.5191, allocations: 0.5227 MB / 493.2 MB, free: 448 kB / 334.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5191, allocations: 0 / 493.2 MB, free: 448 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).