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.001011/0.001011, allocations: 96.27 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.0009583/0.0009584, allocations: 179 kB / 16.58 MB, free: 6.395 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.827/1.827, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06001/0.06001, 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.0005394/0.0005398, allocations: 20.16 kB / 346.9 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1216, allocations: 51.1 MB / 398 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA): time 0.01016/0.1318, allocations: 9.843 MB / 407.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1423, allocations: 4.695 MB / 412.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.1443, allocations: 35.88 kB / 412.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.146, allocations: 481.4 kB / 413 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005946/0.152, allocations: 2.069 MB / 415.1 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.1531, allocations: 485.9 kB / 415.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005109/0.1583, allocations: 2.581 MB / 418.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006366/0.1589, allocations: 221.2 kB / 418.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.1611, allocations: 0.9848 MB / 419.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.163, allocations: 0.9262 MB / 420.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003834/0.1634, allocations: 48 kB / 420.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.1654, allocations: 379.7 kB / 420.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003662/0.1657, allocations: 198.9 kB / 420.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009028/0.1667, allocations: 376.8 kB / 421.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002762/0.1694, allocations: 1.714 MB / 423 MB, free: 7.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1694, allocations: 0 / 423 MB, free: 7.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1695, allocations: 0 / 423 MB, free: 7.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.105e-05/0.1695, allocations: 0 / 423 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.007424/0.1769, allocations: 2.521 MB / 425.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.177, allocations: 11.97 kB / 425.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003205/0.1773, allocations: 210.7 kB / 425.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.1784, allocations: 281.8 kB / 426 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.1804, allocations: 1.027 MB / 427 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.1806, allocations: 186.1 kB / 427.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.1807, allocations: 136 kB / 427.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.183, allocations: 1.419 MB / 428.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.183, allocations: 3.938 kB / 428.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.1832, allocations: 60 kB / 428.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.895e-05/0.1832, allocations: 36 kB / 428.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/0.1854, allocations: 1.384 MB / 430.2 MB, free: 84 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.2403/0.4257, allocations: 8.858 MB / 439.1 MB, free: 28.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.4286, allocations: 1.534 MB / 440.6 MB, free: 28.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.4287, allocations: 16.95 kB / 440.6 MB, free: 28.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001653/0.4304, allocations: 1.196 MB / 441.8 MB, free: 27.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 4.168e-06/0.4304, allocations: 0 / 441.8 MB, free: 27.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009254/0.4397, allocations: 3.348 MB / 445.2 MB, free: 26.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001751/0.4399, allocations: 0.5438 MB / 445.7 MB, free: 25.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.4411, allocations: 0.7825 MB / 446.5 MB, free: 25.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.442e-05/0.4412, allocations: 63 kB / 446.6 MB, free: 25.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004482/0.4416, allocations: 0.5803 MB / 447.2 MB, free: 24.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004786/0.4421, allocations: 0.545 MB / 447.7 MB, free: 24.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.171e-05/0.4422, allocations: 32.97 kB / 447.7 MB, free: 24.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4423, allocations: 371.2 kB / 448.1 MB, free: 23.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008433/0.4431, allocations: 440.5 kB / 448.5 MB, free: 23.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009354/0.4441, allocations: 0.6783 MB / 449.2 MB, free: 23.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008745/0.445, allocations: 0.6365 MB / 449.8 MB, free: 22.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.445, allocations: 2.156 kB / 449.8 MB, free: 22.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003419/0.4484, allocations: 1.936 MB / 451.8 MB, free: 21.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/0.4485, allocations: 128.8 kB / 451.9 MB, free: 21.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.4485, allocations: 5.406 kB / 451.9 MB, free: 21.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001358/0.4499, allocations: 461.3 kB / 452.4 MB, free: 21.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.4511, allocations: 317.7 kB / 452.7 MB, free: 21.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006/0.4571, allocations: 4.184 MB / 456.8 MB, free: 18.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4584, allocations: 105.4 kB / 457 MB, free: 18.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.083e-05/0.4585, allocations: 55.47 kB / 457 MB, free: 18.57 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.0007285/0.4593, allocations: 421.6 kB / 457.4 MB, free: 18.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.4595, allocations: 149.2 kB / 457.6 MB, free: 18.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/0.4623, allocations: 1.888 MB / 459.5 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.4624, allocations: 15.66 kB / 459.5 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4624, allocations: 0 / 459.5 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4624, allocations: 7.969 kB / 459.5 MB, free: 17.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004681/0.4671, allocations: 3.429 MB / 462.9 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.4671, allocations: 0 / 462.9 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4681, allocations: 267 kB / 463.2 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.4693, allocations: 424.3 kB / 463.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-05/0.4694, allocations: 35.69 kB / 463.6 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005295/0.4747, allocations: 4.086 MB / 467.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4747, allocations: 0 / 467.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004148/0.4789, allocations: 3.294 MB / 471 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005577/0.4794, allocations: 331.2 kB / 471.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.4796, allocations: 39.95 kB / 471.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007109/0.4803, allocations: 67.58 kB / 471.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.4806, allocations: 130.3 kB / 471.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/0.4807, allocations: 47.98 kB / 471.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006195/0.4813, allocations: 0.5168 MB / 472.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4813, allocations: 0 / 472.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001674/0.483, allocations: 0.562 MB / 472.7 MB, free: 5.496 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.003122/0.4861, allocations: 2.619 MB / 475.3 MB, free: 2.848 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.4889, allocations: 1.996 MB / 477.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.489, allocations: 0 / 477.3 MB, free: 0.793 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.001744/0.4907, allocations: 1.389 MB / 478.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008069/0.4915, allocations: 147.1 kB / 478.8 MB, free: 15.23 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.01545/0.507, allocations: 12.44 MB / 491.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008793/0.5079, allocations: 1.271 MB / 492.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008725/0.5088, allocations: 182.7 kB / 492.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.5094, allocations: 0.5227 MB / 493.2 MB, free: 400 kB / 334.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5094, allocations: 0 / 493.2 MB, free: 400 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).