Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad.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.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",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.001235/0.001235, allocations: 96.03 kB / 15.69 MB, free: 480 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.001768/0.001768, allocations: 179 kB / 16.57 MB, free: 6.391 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.812/1.812, 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.05967/0.05967, 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.0005337/0.0005338, allocations: 16.22 kB / 346.9 MB, free: 19.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1229, allocations: 51.12 MB / 398 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad): time 0.009151/0.1322, allocations: 9.787 MB / 407.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00876/0.141, allocations: 4.68 MB / 412.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.143, allocations: 43.81 kB / 412.5 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.1447, allocations: 485.4 kB / 413 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006705/0.1514, allocations: 2.047 MB / 415 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.1526, allocations: 494.1 kB / 415.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005359/0.158, allocations: 2.574 MB / 418.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004971/0.1585, allocations: 213.7 kB / 418.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002113/0.1606, allocations: 0.9887 MB / 419.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.162, allocations: 0.9262 MB / 420.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.1622, allocations: 52 kB / 420.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001367/0.1636, allocations: 383.6 kB / 420.6 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.1638, allocations: 194.9 kB / 420.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005014/0.1643, allocations: 368.9 kB / 421.2 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.1663, allocations: 1.714 MB / 422.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1663, allocations: 0 / 422.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1663, allocations: 0 / 422.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.1664, allocations: 4 kB / 422.9 MB, free: 7.676 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.007723/0.1741, allocations: 2.517 MB / 425.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.1742, allocations: 12.03 kB / 425.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004027/0.1746, allocations: 206.6 kB / 425.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.1758, allocations: 285.7 kB / 425.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.1778, allocations: 1.023 MB / 426.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.178, allocations: 186.1 kB / 427.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/0.1782, allocations: 140 kB / 427.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.1805, allocations: 1.407 MB / 428.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.1805, allocations: 3.938 kB / 428.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.1807, allocations: 60 kB / 428.7 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/0.1807, allocations: 32 kB / 428.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.1829, allocations: 1.38 MB / 430.1 MB, free: 204 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.2434/0.4264, allocations: 8.854 MB / 439 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.4291, allocations: 1.52 MB / 440.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.141e-05/0.4292, allocations: 18.34 kB / 440.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001485/0.4307, allocations: 1.19 MB / 441.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 3.226e-06/0.4307, allocations: 3.469 kB / 441.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=167): time 0.009493/0.4402, allocations: 3.299 MB / 445 MB, free: 12.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/0.4404, allocations: 0.5441 MB / 445.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.4417, allocations: 0.7876 MB / 446.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.4418, allocations: 57.8 kB / 446.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004966/0.4423, allocations: 0.5918 MB / 447 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.4428, allocations: 0.5412 MB / 447.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/0.4429, allocations: 37.66 kB / 447.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.443, allocations: 362.5 kB / 447.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009337/0.444, allocations: 442.4 kB / 448.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.445, allocations: 0.6811 MB / 449 MB, free: 10.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000903/0.4459, allocations: 0.626 MB / 449.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.4459, allocations: 1.344 kB / 449.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003518/0.4494, allocations: 1.939 MB / 451.6 MB, free: 9.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.084e-05/0.4495, allocations: 130.6 kB / 451.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.4496, allocations: 5.25 kB / 451.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.451, allocations: 461.6 kB / 452.2 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.4524, allocations: 323.8 kB / 452.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006249/0.4586, allocations: 4.172 MB / 456.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.4601, allocations: 100 kB / 456.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.183e-05/0.4602, allocations: 59.72 kB / 456.8 MB, free: 8.375 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.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,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.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$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.0007942/0.461, allocations: 425.7 kB / 457.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.4612, allocations: 154.5 kB / 457.4 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.4643, allocations: 1.873 MB / 459.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.4643, allocations: 14.94 kB / 459.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.4643, allocations: 4 kB / 459.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.4644, allocations: 6.656 kB / 459.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005008/0.4694, allocations: 3.413 MB / 462.7 MB, free: 6.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.4694, allocations: 10.62 kB / 462.7 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.4705, allocations: 260.1 kB / 463 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.4717, allocations: 428.3 kB / 463.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.31e-05/0.4718, allocations: 42.48 kB / 463.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00522/0.477, allocations: 4.082 MB / 467.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.477, allocations: 4 kB / 467.5 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004655/0.4817, allocations: 3.284 MB / 470.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008995/0.4826, allocations: 339.1 kB / 471.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.4828, allocations: 35.98 kB / 471.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007304/0.4836, allocations: 66.95 kB / 471.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003405/0.4839, allocations: 134.5 kB / 471.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.47e-05/0.484, allocations: 40 kB / 471.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008225/0.4848, allocations: 0.5287 MB / 471.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4848, allocations: 0 / 471.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002157/0.487, allocations: 0.5579 MB / 472.5 MB, free: 13.7 MB / 334.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: 18 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine2.breakerStatus) * Number of discrete states: 18 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,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 (111): * Single equations (assignments): 108 * 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.004254/0.4913, allocations: 2.613 MB / 475.1 MB, free: 11.09 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 initialization part: time 0.003872/0.4952, allocations: 1.994 MB / 477.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4952, allocations: 0 / 477.1 MB, free: 9.07 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.002164/0.4973, allocations: 1.381 MB / 478.5 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009406/0.4983, allocations: 136.3 kB / 478.6 MB, free: 7.539 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.01588/0.5142, allocations: 12.44 MB / 491 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008732/0.5151, allocations: 1.271 MB / 492.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008597/0.5159, allocations: 177.9 kB / 492.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000651/0.5166, allocations: 0.5268 MB / 493 MB, free: 8.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.834e-06/0.5166, allocations: 0 / 493 MB, free: 8.77 MB / 350.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).