Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA,fileNamePrefix="PowerGrids_symb_jac_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.001156/0.001156, allocations: 88.17 kB / 15.71 MB, free: 452 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.002137/0.002137, allocations: 181.3 kB / 16.59 MB, free: 6.855 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.646/1.646, allocations: 205.4 MB / 222.8 MB, free: 5.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06654/0.06654, allocations: 14.17 MB / 285.2 MB, free: 7.227 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.0005556/0.0005556, allocations: 16 kB / 346.9 MB, free: 19.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.136, allocations: 51.12 MB / 398 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA): time 0.01271/0.1488, allocations: 10.85 MB / 408.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1596, allocations: 4.721 MB / 413.6 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003517/0.1632, allocations: 35.88 kB / 413.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002714/0.166, allocations: 485.4 kB / 414.1 MB, free: 488 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007799/0.1739, allocations: 1.916 MB / 416 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.1757, allocations: 498.7 kB / 416.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006785/0.1825, allocations: 3.421 MB / 419.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008537/0.1834, allocations: 217.2 kB / 420.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002683/0.1861, allocations: 0.9294 MB / 421.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.1884, allocations: 0.9686 MB / 422.1 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004683/0.1889, allocations: 48 kB / 422.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002632/0.1915, allocations: 387.7 kB / 422.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005471/0.1921, allocations: 198.8 kB / 422.7 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.1937, allocations: 376.8 kB / 423 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003529/0.1972, allocations: 1.734 MB / 424.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1973, allocations: 0 / 424.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1973, allocations: 0 / 424.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.649e-05/0.1974, allocations: 0 / 424.8 MB, free: 5.789 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.008957/0.2063, allocations: 2.533 MB / 427.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.2064, allocations: 8.031 kB / 427.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006997/0.2071, allocations: 206.7 kB / 427.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.2087, allocations: 277.8 kB / 427.8 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00289/0.2116, allocations: 1.034 MB / 428.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.2119, allocations: 182.1 kB / 429 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003414/0.2122, allocations: 136 kB / 429.1 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2803/0.4925, allocations: 1.426 MB / 430.6 MB, free: 35.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.669e-05/0.4926, allocations: 6.031 kB / 430.6 MB, free: 35.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.4928, allocations: 58.12 kB / 430.6 MB, free: 35.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-05/0.4929, allocations: 33.5 kB / 430.7 MB, free: 35.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003023/0.4959, allocations: 1.382 MB / 432 MB, free: 35.32 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.0101/0.506, allocations: 8.869 MB / 440.9 MB, free: 28.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/0.5088, allocations: 1.529 MB / 442.4 MB, free: 27.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009561/0.5097, allocations: 0.5998 MB / 443 MB, free: 27.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.5099, allocations: 19.91 kB / 443.1 MB, free: 27.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001608/0.5115, allocations: 1.194 MB / 444.3 MB, free: 26.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 3.617e-06/0.5115, allocations: 0 / 444.3 MB, free: 26.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009266/0.5208, allocations: 3.283 MB / 447.5 MB, free: 25.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001926/0.521, allocations: 0.5432 MB / 448.1 MB, free: 24.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.5224, allocations: 0.7827 MB / 448.9 MB, free: 24.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.5225, allocations: 63.91 kB / 448.9 MB, free: 24.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004952/0.523, allocations: 0.5834 MB / 449.5 MB, free: 23.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004944/0.5235, allocations: 0.5415 MB / 450 MB, free: 23.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.277e-05/0.5236, allocations: 33.25 kB / 450.1 MB, free: 23.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5237, allocations: 373.2 kB / 450.4 MB, free: 23.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007801/0.5245, allocations: 438.7 kB / 450.9 MB, free: 22.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.5257, allocations: 0.6852 MB / 451.6 MB, free: 22.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5269, allocations: 0.6299 MB / 452.2 MB, free: 22.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.5269, allocations: 5.969 kB / 452.2 MB, free: 22.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.004183/0.5311, allocations: 1.933 MB / 454.1 MB, free: 20.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.223e-05/0.5312, allocations: 130.2 kB / 454.3 MB, free: 20.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.5312, allocations: 7.219 kB / 454.3 MB, free: 20.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.5327, allocations: 464.3 kB / 454.7 MB, free: 20.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.534, allocations: 313.6 kB / 455 MB, free: 20.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005818/0.5398, allocations: 4.041 MB / 459.1 MB, free: 17.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.5412, allocations: 106.8 kB / 459.2 MB, free: 17.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.5413, allocations: 55.28 kB / 459.2 MB, free: 17.55 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.001016/0.5424, allocations: 421.2 kB / 459.6 MB, free: 17.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.5427, allocations: 153.3 kB / 459.8 MB, free: 17.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003271/0.5459, allocations: 1.886 MB / 461.7 MB, free: 16.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.546, allocations: 15.88 kB / 461.7 MB, free: 16.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.546, allocations: 3.953 kB / 461.7 MB, free: 16.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.546, allocations: 7.969 kB / 461.7 MB, free: 16.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005549/0.5516, allocations: 3.425 MB / 465.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5516, allocations: 128 / 465.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/0.5526, allocations: 271.7 kB / 465.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.5537, allocations: 432.3 kB / 465.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/0.5538, allocations: 39.98 kB / 465.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005586/0.5594, allocations: 3.939 MB / 469.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5594, allocations: 0 / 469.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/0.5639, allocations: 3.29 MB / 473.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006647/0.5646, allocations: 327.2 kB / 473.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.5648, allocations: 35.98 kB / 473.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006563/0.5654, allocations: 71.58 kB / 473.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.5657, allocations: 137.1 kB / 473.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.518e-05/0.5658, allocations: 43.94 kB / 473.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006701/0.5665, allocations: 0.5246 MB / 474.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5665, allocations: 0 / 474.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001745/0.5683, allocations: 0.5592 MB / 474.8 MB, free: 3.527 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.003318/0.5716, allocations: 2.604 MB / 477.4 MB, free: 0.8867 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.003418/0.575, allocations: 2.001 MB / 479.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.575, allocations: 0 / 479.4 MB, free: 14.83 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 simulation system equations: time 0.002169/0.5772, allocations: 1.384 MB / 480.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.5785, allocations: 177.3 kB / 480.9 MB, free: 13.24 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.01617/0.5947, allocations: 8.566 MB / 489.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5958, allocations: 1.239 MB / 490.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.5969, allocations: 182.9 kB / 490.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009031/0.5978, allocations: 0.5227 MB / 491.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of SimCode: time 3.116e-06/0.5978, allocations: 0 / 491.4 MB, free: 2.359 MB / 334.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). [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).