Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.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.TwoBusesShuntTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesShuntTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesShuntTransmissionLine",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.0007338/0.0007338, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008723/0.0008722, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05808/0.05808, allocations: 14.16 MB / 284.6 MB, free: 7.129 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.0004841/0.0004841, allocations: 15.98 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.09986, allocations: 51.12 MB / 397.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine): time 0.006165/0.1061, allocations: 6.561 MB / 403.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00466/0.1108, allocations: 3.256 MB / 407.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004807/0.1113, allocations: 19.94 kB / 407.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007676/0.1121, allocations: 310.4 kB / 407.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002885/0.115, allocations: 1.264 MB / 408.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.1158, allocations: 478.1 kB / 409.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002113/0.1179, allocations: 1.758 MB / 411 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.1182, allocations: 114.4 kB / 411.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006736/0.1189, allocations: 473.6 kB / 411.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006667/0.1195, allocations: 0.5017 MB / 412.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.1196, allocations: 24 kB / 412.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009687/0.1206, allocations: 351.7 kB / 412.5 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.856e-05/0.1207, allocations: 107.3 kB / 412.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.1209, allocations: 209.2 kB / 412.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.122, allocations: 1.013 MB / 413.8 MB, free: 152 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/0.122, allocations: 4 kB / 413.8 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.122, allocations: 0 / 413.8 MB, free: 148 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.122, allocations: 0 / 413.8 MB, free: 148 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.004298/0.1263, allocations: 1.509 MB / 415.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.1264, allocations: 19.94 kB / 415.3 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.1265, allocations: 122.6 kB / 415.4 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005227/0.1271, allocations: 150.7 kB / 415.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1281, allocations: 0.6248 MB / 416.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.1282, allocations: 54 kB / 416.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.76e-05/0.1283, allocations: 72 kB / 416.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.1296, allocations: 0.7732 MB / 417.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.1296, allocations: 3.938 kB / 417.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.1297, allocations: 28 kB / 417.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.1297, allocations: 16 kB / 417.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1308, allocations: 0.7065 MB / 417.9 MB, free: 11.94 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.004655/0.1355, allocations: 4.714 MB / 422.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.1371, allocations: 0.9551 MB / 423.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004275/0.1376, allocations: 303.8 kB / 423.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.598e-05/0.1376, allocations: 8.656 kB / 423.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.1377, allocations: 39.22 kB / 423.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 3.376e-06/0.1377, allocations: 3.938 kB / 423.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002753/0.1404, allocations: 1.229 MB / 425.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.1405, allocations: 56.06 kB / 425.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005423/0.141, allocations: 499 kB / 425.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.1411, allocations: 37.7 kB / 425.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1414, allocations: 367.8 kB / 426 MB, free: 3.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.1416, allocations: 268.1 kB / 426.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.1416, allocations: 19.94 kB / 426.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.1419, allocations: 382.7 kB / 426.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.1423, allocations: 213.9 kB / 426.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.1427, allocations: 328.3 kB / 427.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004398/0.1432, allocations: 266.9 kB / 427.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1432, allocations: 4 kB / 427.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001373/0.1445, allocations: 0.8564 MB / 428.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1446, allocations: 4 kB / 428.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1446, allocations: 4 kB / 428.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005562/0.1452, allocations: 188.5 kB / 428.5 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007256/0.1459, allocations: 195.8 kB / 428.7 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1976/0.3435, allocations: 2.33 MB / 431.1 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.3442, allocations: 59.84 kB / 431.1 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.3443, allocations: 26.08 kB / 431.1 MB, free: 34.71 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.000371/0.3447, allocations: 217.9 kB / 431.3 MB, free: 34.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3448, allocations: 80.3 kB / 431.4 MB, free: 34.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.3463, allocations: 0.7929 MB / 432.2 MB, free: 34.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3463, allocations: 12.61 kB / 432.2 MB, free: 34.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3463, allocations: 2.188 kB / 432.2 MB, free: 34.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3463, allocations: 4.875 kB / 432.2 MB, free: 34.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002659/0.349, allocations: 1.722 MB / 434 MB, free: 33.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.349, allocations: 3.625 kB / 434 MB, free: 33.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006875/0.3497, allocations: 163.6 kB / 434.1 MB, free: 33.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000548/0.3503, allocations: 175.5 kB / 434.3 MB, free: 33.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.471e-05/0.3503, allocations: 12.72 kB / 434.3 MB, free: 33.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/0.3529, allocations: 2.342 MB / 436.7 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.353, allocations: 0 / 436.7 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.3543, allocations: 0.8492 MB / 437.5 MB, free: 31.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003151/0.3546, allocations: 208 kB / 437.7 MB, free: 31.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.232e-05/0.3547, allocations: 19.44 kB / 437.7 MB, free: 31.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003583/0.3551, allocations: 28.44 kB / 437.8 MB, free: 31.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/0.3552, allocations: 58.52 kB / 437.8 MB, free: 31.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.3552, allocations: 16.59 kB / 437.8 MB, free: 31.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004321/0.3556, allocations: 341.1 kB / 438.2 MB, free: 31.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3556, allocations: 0 / 438.2 MB, free: 31.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008952/0.3565, allocations: 271.7 kB / 438.4 MB, free: 31.25 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.001645/0.3582, allocations: 1.47 MB / 439.9 MB, free: 30.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.3595, allocations: 0.8021 MB / 440.7 MB, free: 29.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3596, allocations: 2.719 kB / 440.7 MB, free: 29.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007446/0.3603, allocations: 0.5058 MB / 441.2 MB, free: 29.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3609, allocations: 82.91 kB / 441.3 MB, free: 29.56 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.006183/0.3671, allocations: 3.926 MB / 445.2 MB, free: 27.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.3676, allocations: 0.942 MB / 446.2 MB, free: 26.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004371/0.368, allocations: 91.14 kB / 446.2 MB, free: 26.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003191/0.3684, allocations: 267.4 kB / 446.5 MB, free: 26.52 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3684, allocations: 0 / 446.5 MB, free: 26.52 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).