Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_dev_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_dev_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",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.001145/0.001145, allocations: 99.7 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.0009796/0.0009795, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2039/0.2039, allocations: 14.17 MB / 305.1 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003503, allocations: 8 kB / 371.7 MB, free: 4.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3468, allocations: 53.9 MB / 425.6 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.006692/0.3536, allocations: 7.64 MB / 433.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006541/0.3601, allocations: 3.88 MB / 437.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.3619, allocations: 27.97 kB / 437.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.3634, allocations: 379.6 kB / 437.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.3678, allocations: 1.631 MB / 439.2 MB, free: 32.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008414/0.3687, allocations: 416.5 kB / 439.6 MB, free: 32.58 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1101:9-1101:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘GEN.UStart / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1101:9-1101:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘TGEN.UStartA / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1101:9-1101:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘TGEN.UStartB / 1.732050807568877‘ [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1101:9-1101:67:writable] Error: Internal error NFCeval.evalBinaryDiv failed to evaluate ‘GRIDL.UStart / 1.732050807568877‘ Notification: Performance of NFFlatten.flatten: time 0.003125/0.3718, allocations: 1.656 MB / 441.2 MB, free: 31.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008901/0.3727, allocations: 0.5608 MB / 441.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.3739, allocations: 0.6936 MB / 442.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3751, allocations: 0.7321 MB / 443.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.3752, allocations: 38.72 kB / 443.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.3766, allocations: 361.9 kB / 443.6 MB, free: 30.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.3767, allocations: 165.5 kB / 443.8 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003352/0.377, allocations: 291.8 kB / 444 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001387/0.3784, allocations: 1.393 MB / 445.4 MB, free: 29.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3785, allocations: 3.312 kB / 445.4 MB, free: 29.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3785, allocations: 0 / 445.4 MB, free: 29.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.3785, allocations: 0 / 445.4 MB, free: 29.91 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.007388/0.3859, allocations: 2.163 MB / 447.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.3859, allocations: 10.31 kB / 447.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.3862, allocations: 160.1 kB / 447.8 MB, free: 28.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008977/0.3871, allocations: 211.8 kB / 448 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3884, allocations: 0.8278 MB / 448.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.81e-05/0.3885, allocations: 83.62 kB / 448.9 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3886, allocations: 108.5 kB / 449 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.39, allocations: 0.9928 MB / 450 MB, free: 27.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.39, allocations: 3.953 kB / 450 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.456e-05/0.3901, allocations: 44.86 kB / 450 MB, free: 27.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.3901, allocations: 29.69 kB / 450.1 MB, free: 27.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.3914, allocations: 0.9395 MB / 451 MB, free: 27.16 MB / 350.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.005853/0.3972, allocations: 6.977 MB / 458 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.3987, allocations: 1.158 MB / 459.1 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.003e-05/0.3988, allocations: 13.97 kB / 459.1 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3988, allocations: 49.91 kB / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.625e-06/0.3988, allocations: 0 / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.002724/0.4016, allocations: 1.344 MB / 460.5 MB, free: 19.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.4016, allocations: 142.1 kB / 460.7 MB, free: 19.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009013/0.4025, allocations: 0.842 MB / 461.5 MB, free: 19.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.4026, allocations: 44.83 kB / 461.6 MB, free: 19.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.403, allocations: 0.5558 MB / 462.1 MB, free: 18.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.4032, allocations: 340.5 kB / 462.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.931e-05/0.4033, allocations: 38.03 kB / 462.5 MB, free: 18.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4035, allocations: 428.5 kB / 462.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006948/0.4042, allocations: 492.4 kB / 463.4 MB, free: 17.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008315/0.405, allocations: 0.7768 MB / 464.2 MB, free: 17.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000892/0.4059, allocations: 0.6218 MB / 464.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.4059, allocations: 3.031 kB / 464.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.002868/0.4088, allocations: 1.758 MB / 466.5 MB, free: 16.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.4089, allocations: 7.969 kB / 466.6 MB, free: 16.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.4089, allocations: 14.23 kB / 466.6 MB, free: 16.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007843/0.4097, allocations: 200.5 kB / 466.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.4112, allocations: 420.2 kB / 467.2 MB, free: 16.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.4149, allocations: 3.58 MB / 470.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.4165, allocations: 140.1 kB / 470.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.4166, allocations: 66.34 kB / 471 MB, free: 12.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (237): * Single equations (assignments): 235 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005723/0.4172, allocations: 304.7 kB / 471.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/0.4174, allocations: 108.9 kB / 471.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.4191, allocations: 0.8436 MB / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.4192, allocations: 9.094 kB / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4192, allocations: 1.25 kB / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.4192, allocations: 4.562 kB / 472.2 MB, free: 12.07 MB / 350.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.003707/0.4229, allocations: 2.572 MB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.4229, allocations: 7 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007041/0.4236, allocations: 161.6 kB / 475 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007186/0.4244, allocations: 188.2 kB / 475.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.4244, allocations: 23.45 kB / 475.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003418/0.4279, allocations: 3.523 MB / 478.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.4279, allocations: 8.25 kB / 478.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.43, allocations: 1.199 MB / 479.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007528/0.4308, allocations: 261.4 kB / 480.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.4311, allocations: 19.75 kB / 480.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008643/0.4319, allocations: 28.97 kB / 480.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4321, allocations: 67.12 kB / 480.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.4322, allocations: 24.25 kB / 480.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001086/0.4333, allocations: 0.542 MB / 480.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4333, allocations: 0 / 480.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002191/0.4355, allocations: 464.1 kB / 481.3 MB, free: 5.758 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (78): * Single equations (assignments): 76 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.00239/0.4379, allocations: 2.815 MB / 484.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.4408, allocations: 1.429 MB / 485.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.4408, allocations: 1.344 kB / 485.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009814/0.4418, allocations: 0.6196 MB / 486.1 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.4427, allocations: 102.3 kB / 486.2 MB, free: 2.227 MB / 350.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.007466/0.4502, allocations: 7.361 MB / 493.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.4513, allocations: 1.063 MB / 494.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001007/0.4523, allocations: 166 kB / 494.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007335/0.4531, allocations: 402.8 kB / 495.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4531, allocations: 0 / 495.2 MB, free: 10.51 MB / 366.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).