Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.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.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",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.001118/0.001118, 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.001223/0.001224, allocations: 179.3 kB / 16.59 MB, free: 6.859 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.706/1.706, 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.0627/0.0627, allocations: 14.17 MB / 285.2 MB, free: 7.137 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.0005552/0.0005552, allocations: 12 kB / 346.9 MB, free: 19.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1284, allocations: 51.12 MB / 398 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.006675/0.1351, allocations: 6.565 MB / 404.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005832/0.141, allocations: 3.252 MB / 407.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006446/0.1416, allocations: 23.88 kB / 407.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009913/0.1427, allocations: 306.4 kB / 408.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003505/0.1462, allocations: 1.255 MB / 409.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009906/0.1472, allocations: 480.8 kB / 409.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00265/0.1498, allocations: 1.762 MB / 411.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.1501, allocations: 114.4 kB / 411.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008554/0.151, allocations: 477.6 kB / 412.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006745/0.1517, allocations: 0.5017 MB / 412.7 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.567e-05/0.1517, allocations: 24 kB / 412.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1529, allocations: 351.7 kB / 413.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.153, allocations: 103.4 kB / 413.2 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.1533, allocations: 209.2 kB / 413.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.1546, allocations: 1.013 MB / 414.4 MB, free: 180 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.1546, allocations: 4 kB / 414.4 MB, free: 176 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1546, allocations: 0 / 414.4 MB, free: 176 kB / 302.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1546, allocations: 4 kB / 414.4 MB, free: 172 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004509/0.1592, allocations: 1.516 MB / 415.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.1592, allocations: 15.95 kB / 416 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001569/0.1594, allocations: 118.6 kB / 416.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.1599, allocations: 150.7 kB / 416.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1609, allocations: 0.6248 MB / 416.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.161, allocations: 54 kB / 416.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.1611, allocations: 72 kB / 417 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.1624, allocations: 0.7693 MB / 417.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.1624, allocations: 0 / 417.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.935e-05/0.1625, allocations: 28 kB / 417.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.1625, allocations: 20 kB / 417.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1637, allocations: 0.7026 MB / 418.5 MB, free: 11.97 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.004997/0.1687, allocations: 4.685 MB / 423.2 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.1704, allocations: 0.9522 MB / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.1709, allocations: 303.8 kB / 424.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.708e-05/0.1709, allocations: 8.656 kB / 424.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.171, allocations: 43.2 kB / 424.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.945e-06/0.171, allocations: 3.938 kB / 424.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002939/0.174, allocations: 1.229 MB / 425.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.174, allocations: 60.06 kB / 425.8 MB, free: 4.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006429/0.1747, allocations: 495 kB / 426.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.1747, allocations: 37.64 kB / 426.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002961/0.175, allocations: 371.8 kB / 426.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000244/0.1753, allocations: 272.1 kB / 426.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.1753, allocations: 15.94 kB / 426.9 MB, free: 2.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1755, allocations: 382.7 kB / 427.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003546/0.1759, allocations: 209.9 kB / 427.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004416/0.1763, allocations: 332.3 kB / 427.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.1768, allocations: 274.9 kB / 428.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1768, allocations: 0 / 428.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001407/0.1782, allocations: 0.8525 MB / 429 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1782, allocations: 4 kB / 429 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1783, allocations: 8.312 kB / 429 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005711/0.1788, allocations: 180.7 kB / 429.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/0.1796, allocations: 195.8 kB / 429.3 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2794/0.459, allocations: 2.32 MB / 431.7 MB, free: 24.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007825/0.4598, allocations: 55.75 kB / 431.7 MB, free: 24.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.453e-05/0.4599, allocations: 27.02 kB / 431.7 MB, free: 24.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(4,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004845/0.4604, allocations: 221.7 kB / 432 MB, free: 24.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/0.4606, allocations: 74.36 kB / 432 MB, free: 24.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.4623, allocations: 0.7994 MB / 432.8 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4623, allocations: 7.719 kB / 432.8 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4624, allocations: 3.156 kB / 432.8 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.4624, allocations: 5.031 kB / 432.8 MB, free: 24.71 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 postOpt removeSimpleEquations (simulation): time 0.002977/0.4654, allocations: 1.727 MB / 434.6 MB, free: 24.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4654, allocations: 1.188 kB / 434.6 MB, free: 24.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.4661, allocations: 165.6 kB / 434.7 MB, free: 24.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000553/0.4667, allocations: 172.8 kB / 434.9 MB, free: 24.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.4667, allocations: 12.56 kB / 434.9 MB, free: 24.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.4701, allocations: 2.319 MB / 437.2 MB, free: 22.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/0.4701, allocations: 2.875 kB / 437.2 MB, free: 22.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.4729, allocations: 1.793 MB / 439 MB, free: 22.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003694/0.4733, allocations: 203.6 kB / 439.2 MB, free: 22.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.477e-05/0.4734, allocations: 9.281 kB / 439.2 MB, free: 22.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.4737, allocations: 31.02 kB / 439.3 MB, free: 22.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.4739, allocations: 48.22 kB / 439.3 MB, free: 22.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.4739, allocations: 21.72 kB / 439.3 MB, free: 22.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005862/0.4745, allocations: 343.5 kB / 439.7 MB, free: 21.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4745, allocations: 0 / 439.7 MB, free: 21.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001286/0.4758, allocations: 279.3 kB / 439.9 MB, free: 21.92 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(4,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001879/0.4777, allocations: 1.468 MB / 441.4 MB, free: 21.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.4793, allocations: 0.8083 MB / 442.2 MB, free: 21.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4794, allocations: 1.156 kB / 442.2 MB, free: 21.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009626/0.4803, allocations: 0.5203 MB / 442.7 MB, free: 20.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.481, allocations: 79.59 kB / 442.8 MB, free: 20.91 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 linear, non-linear and system jacobian parts: time 0.00788/0.4889, allocations: 4.353 MB / 447.2 MB, free: 19.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.4895, allocations: 0.9536 MB / 448.1 MB, free: 18.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.49, allocations: 91.05 kB / 448.2 MB, free: 18.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.4904, allocations: 271.5 kB / 448.5 MB, free: 18.59 MB / 318.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4904, allocations: 4 kB / 448.5 MB, free: 18.59 MB / 318.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, 641.5002990995843, 0.0).