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.001132/0.001132, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001192/0.001192, allocations: 177.3 kB / 15.95 MB, free: 216 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.608/1.608, allocations: 205.4 MB / 222.1 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.05801/0.05801, allocations: 14.16 MB / 284.5 MB, free: 7.145 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.0005172/0.0005172, allocations: 16.22 kB / 346.2 MB, free: 19.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1129, allocations: 51.13 MB / 397.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine): time 0.005789/0.1187, allocations: 5.985 MB / 403.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005043/0.1238, allocations: 3.21 MB / 406.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005943/0.1244, allocations: 15.94 kB / 406.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008396/0.1253, allocations: 310.4 kB / 406.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003173/0.1285, allocations: 1.334 MB / 408.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.1293, allocations: 498.1 kB / 408.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.1315, allocations: 1.314 MB / 410 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.1318, allocations: 114.4 kB / 410.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007405/0.1325, allocations: 0.506 MB / 410.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.1331, allocations: 494.1 kB / 411.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.967e-05/0.1331, allocations: 24 kB / 411.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008588/0.134, allocations: 335.6 kB / 411.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.141e-05/0.1341, allocations: 103.5 kB / 411.6 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1343, allocations: 217.2 kB / 411.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1354, allocations: 0.9937 MB / 412.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1354, allocations: 0 / 412.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1354, allocations: 0 / 412.8 MB, free: 1.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.1354, allocations: 0 / 412.8 MB, free: 1.18 MB / 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.004444/0.1399, allocations: 1.516 MB / 414.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.14, allocations: 12.02 kB / 414.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.1401, allocations: 118.6 kB / 414.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005693/0.1407, allocations: 146.7 kB / 414.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.1418, allocations: 0.6364 MB / 415.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.1419, allocations: 54 kB / 415.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.1419, allocations: 72 kB / 415.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.1431, allocations: 0.7576 MB / 416.1 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1431, allocations: 3.938 kB / 416.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.1432, allocations: 32 kB / 416.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.1432, allocations: 19.94 kB / 416.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.1443, allocations: 0.7026 MB / 416.8 MB, free: 12.98 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.005419/0.1497, allocations: 4.707 MB / 421.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.1514, allocations: 0.9588 MB / 422.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.348e-05/0.1515, allocations: 8.656 kB / 422.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1515, allocations: 39.22 kB / 422.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 5.17e-06/0.1515, allocations: 7.984 kB / 422.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002792/0.1543, allocations: 1.222 MB / 423.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.1544, allocations: 60.06 kB / 423.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/0.155, allocations: 499 kB / 424.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.985e-05/0.155, allocations: 37.7 kB / 424.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.1553, allocations: 367.8 kB / 424.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.1555, allocations: 272.1 kB / 425 MB, free: 4.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.1556, allocations: 16 kB / 425 MB, free: 4.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1557, allocations: 382.7 kB / 425.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000326/0.1561, allocations: 209.9 kB / 425.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000418/0.1565, allocations: 324.3 kB / 425.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/0.1569, allocations: 270.9 kB / 426.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1569, allocations: 0 / 426.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001381/0.1583, allocations: 0.8564 MB / 427 MB, free: 2.109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.1584, allocations: 8 kB / 427 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1584, allocations: 4.312 kB / 427 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005573/0.1589, allocations: 180.5 kB / 427.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007971/0.1598, allocations: 195.8 kB / 427.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2174/0.3772, allocations: 2.393 MB / 429.8 MB, free: 34.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000831/0.3781, allocations: 54.48 kB / 429.8 MB, free: 34.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.3781, allocations: 27.12 kB / 429.9 MB, free: 34.82 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.0004206/0.3786, allocations: 226.2 kB / 430.1 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.3787, allocations: 75.38 kB / 430.1 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001535/0.3802, allocations: 0.8006 MB / 430.9 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3803, allocations: 8.25 kB / 431 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3803, allocations: 2.75 kB / 431 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.3803, allocations: 4.031 kB / 431 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.3831, allocations: 1.724 MB / 432.7 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3831, allocations: 0 / 432.7 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006961/0.3838, allocations: 162.3 kB / 432.8 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004958/0.3843, allocations: 173.8 kB / 433 MB, free: 34.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.3844, allocations: 12.06 kB / 433 MB, free: 34.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002598/0.387, allocations: 2.403 MB / 435.4 MB, free: 32.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.387, allocations: 3.438 kB / 435.4 MB, free: 32.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.3883, allocations: 0.8501 MB / 436.3 MB, free: 31.9 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003096/0.3886, allocations: 201.4 kB / 436.5 MB, free: 31.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.3887, allocations: 20.61 kB / 436.5 MB, free: 31.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.3892, allocations: 32.06 kB / 436.5 MB, free: 31.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3893, allocations: 51.12 kB / 436.6 MB, free: 31.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.3893, allocations: 21.06 kB / 436.6 MB, free: 31.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004296/0.3897, allocations: 340.5 kB / 436.9 MB, free: 31.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3898, allocations: 0 / 436.9 MB, free: 31.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009498/0.3907, allocations: 273.5 kB / 437.2 MB, free: 31.5 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.001541/0.3923, allocations: 1.473 MB / 438.7 MB, free: 30.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.3937, allocations: 0.7952 MB / 439.5 MB, free: 30.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3937, allocations: 2.688 kB / 439.5 MB, free: 30.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.3944, allocations: 0.5107 MB / 440 MB, free: 29.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004652/0.3949, allocations: 73.97 kB / 440.1 MB, free: 29.82 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.006682/0.4016, allocations: 5.347 MB / 445.4 MB, free: 26.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.4022, allocations: 0.9572 MB / 446.4 MB, free: 25.53 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005346/0.4028, allocations: 91.23 kB / 446.4 MB, free: 25.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.4031, allocations: 262.9 kB / 446.7 MB, free: 25.3 MB / 318.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4031, allocations: 0 / 446.7 MB, free: 25.3 MB / 318.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).