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.0008902/0.0008902, allocations: 92.7 kB / 15.71 MB, free: 464 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.001102/0.001102, allocations: 174 kB / 16.59 MB, free: 6.402 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.672/1.672, allocations: 205.4 MB / 222.8 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.0799/0.0799, allocations: 14.17 MB / 285.2 MB, free: 7.125 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.0006895/0.0006902, allocations: 16 kB / 346.9 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1329, allocations: 51.11 MB / 398 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad): time 0.01293/0.1458, allocations: 10.82 MB / 408.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009094/0.155, allocations: 4.717 MB / 413.6 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.157, allocations: 43.81 kB / 413.6 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.1591, allocations: 489.4 kB / 414.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006712/0.1659, allocations: 1.897 MB / 416 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001525/0.1674, allocations: 486.8 kB / 416.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006561/0.174, allocations: 3.412 MB / 419.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008102/0.1748, allocations: 213.7 kB / 420.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002672/0.1775, allocations: 0.9449 MB / 421 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002414/0.1799, allocations: 0.957 MB / 422 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004602/0.1804, allocations: 52 kB / 422 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.1826, allocations: 387.7 kB / 422.4 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004727/0.1831, allocations: 206.8 kB / 422.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.1844, allocations: 368.8 kB / 423 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003297/0.1877, allocations: 1.734 MB / 424.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1877, allocations: 0 / 424.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1877, allocations: 0 / 424.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.238e-05/0.1878, allocations: 4 kB / 424.7 MB, free: 5.848 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.008738/0.1965, allocations: 2.518 MB / 427.2 MB, free: 3.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.09e-05/0.1966, allocations: 8.031 kB / 427.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007133/0.1974, allocations: 210.6 kB / 427.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/0.199, allocations: 285.7 kB / 427.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.202, allocations: 1.027 MB / 428.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/0.2023, allocations: 190.1 kB / 428.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/0.2026, allocations: 140 kB / 429.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2887/0.4913, allocations: 1.411 MB / 430.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.189e-05/0.4914, allocations: 5.375 kB / 430.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002166/0.4917, allocations: 58.47 kB / 430.5 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.649e-05/0.4917, allocations: 35.25 kB / 430.6 MB, free: 19.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003941/0.4957, allocations: 1.38 MB / 432 MB, free: 19.54 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.01369/0.5094, allocations: 8.848 MB / 440.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004437/0.5139, allocations: 1.531 MB / 442.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.5155, allocations: 0.59 MB / 442.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.5157, allocations: 16.56 kB / 442.9 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002802/0.5185, allocations: 1.199 MB / 444.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 5.561e-06/0.5185, allocations: 0 / 444.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=167): time 0.01399/0.5325, allocations: 3.238 MB / 447.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003137/0.5329, allocations: 0.5425 MB / 447.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002912/0.5358, allocations: 0.8016 MB / 448.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.5361, allocations: 55.3 kB / 448.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009721/0.5371, allocations: 0.5885 MB / 449.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009618/0.538, allocations: 0.5413 MB / 449.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.5382, allocations: 34.25 kB / 449.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.5384, allocations: 366.8 kB / 450.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.5398, allocations: 439 kB / 450.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/0.5414, allocations: 0.6879 MB / 451.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.5429, allocations: 0.6276 MB / 452 MB, free: 10.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/0.543, allocations: 1.469 kB / 452 MB, free: 10.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.004267/0.5472, allocations: 1.932 MB / 454 MB, free: 9.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.5474, allocations: 132 kB / 454.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.5474, allocations: 9.531 kB / 454.1 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.549, allocations: 457.2 kB / 454.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.5503, allocations: 316.3 kB / 454.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005902/0.5562, allocations: 4.034 MB / 458.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.5575, allocations: 104.6 kB / 459 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.5576, allocations: 59.05 kB / 459.1 MB, free: 7.633 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.0009687/0.5586, allocations: 419.4 kB / 459.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000472/0.5591, allocations: 154.6 kB / 459.6 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003423/0.5625, allocations: 1.878 MB / 461.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.5626, allocations: 18.78 kB / 461.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5626, allocations: 3.609 kB / 461.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/0.5626, allocations: 7.547 kB / 461.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00564/0.5682, allocations: 3.417 MB / 464.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.5683, allocations: 0 / 464.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.5693, allocations: 267.2 kB / 465.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.5706, allocations: 431.2 kB / 465.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.5708, allocations: 39.8 kB / 465.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005467/0.5763, allocations: 3.936 MB / 469.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5763, allocations: 0 / 469.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005742/0.582, allocations: 3.291 MB / 472.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008937/0.583, allocations: 323.1 kB / 473.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003521/0.5833, allocations: 39.98 kB / 473.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009573/0.5843, allocations: 71.62 kB / 473.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/0.5846, allocations: 126.6 kB / 473.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.988e-05/0.5847, allocations: 47.98 kB / 473.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009048/0.5856, allocations: 0.517 MB / 474 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5856, allocations: 3.656 kB / 474 MB, free: 11.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002265/0.5879, allocations: 0.562 MB / 474.6 MB, free: 11.21 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.004738/0.5926, allocations: 2.604 MB / 477.2 MB, free: 8.605 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.004158/0.5968, allocations: 1.994 MB / 479.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5969, allocations: 0 / 479.2 MB, free: 6.586 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.002309/0.5992, allocations: 1.395 MB / 480.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.6009, allocations: 156.2 kB / 480.7 MB, free: 5.02 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.01885/0.6197, allocations: 8.555 MB / 489.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.6213, allocations: 1.239 MB / 490.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.6224, allocations: 170.6 kB / 490.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008177/0.6232, allocations: 0.5266 MB / 491.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.024e-06/0.6232, allocations: 0 / 491.2 MB, free: 10.23 MB / 350.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).