Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow.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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_IEEE14bus_IEEE14busPowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_IEEE14bus_IEEE14busPowerFlow",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.00106/0.00106, allocations: 96.81 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.001246/0.001246, allocations: 175.4 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.586/1.586, allocations: 205.4 MB / 222.7 MB, free: 5.676 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.17 MB / 285.2 MB, free: 7.148 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.0005715/0.0005716, allocations: 16 kB / 349.5 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.123, allocations: 51.12 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow): time 0.3345/0.4575, allocations: 87.68 MB / 488.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.07603/0.5336, allocations: 35.68 MB / 0.5117 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02736/0.5611, allocations: 314.8 kB / 0.512 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02325/0.5843, allocations: 3.962 MB / 0.5159 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.07281/0.6572, allocations: 14.24 MB / 0.5298 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01362/0.6709, allocations: 1.787 MB / 0.5316 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06572/0.7366, allocations: 25.03 MB / 0.556 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01093/0.7476, allocations: 2.114 MB / 0.5581 GB, free: 20 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02928/0.7769, allocations: 9.282 MB / 0.5671 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02308/0.8, allocations: 9.208 MB / 0.5761 GB, free: 13.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006091/0.8061, allocations: 484 kB / 0.5766 GB, free: 12.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01679/0.823, allocations: 1.878 MB / 0.5784 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005618/0.8286, allocations: 1.97 MB / 0.5803 GB, free: 9.129 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01391/0.8426, allocations: 3.356 MB / 0.5836 GB, free: 5.758 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5965/1.439, allocations: 16.19 MB / 0.5994 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.439, allocations: 0 / 0.5994 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.601e-06/1.439, allocations: 0.875 kB / 0.5994 GB, free: 21.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009832/1.44, allocations: 2.156 kB / 0.5994 GB, free: 21.76 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3510 * Number of variables: 3510 Notification: Performance of Generate backend data structure: time 0.08908/1.529, allocations: 21.64 MB / 0.6206 GB, free: 15.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.529, allocations: 8.281 kB / 0.6206 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006856/1.536, allocations: 1.726 MB / 0.6223 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01854/1.555, allocations: 2.737 MB / 0.6249 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03277/1.588, allocations: 8.957 MB / 0.6337 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001094/1.589, allocations: 1.063 MB / 0.6347 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004278/1.593, allocations: 1.288 MB / 0.636 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04019/1.633, allocations: 13.29 MB / 0.6489 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009674/1.634, allocations: 17.78 kB / 0.649 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004426/1.639, allocations: 0.5443 MB / 0.6495 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004057/1.639, allocations: 336.2 kB / 0.6498 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03645/1.676, allocations: 13.61 MB / 0.6631 GB, free: 1.91 MB / 446.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.1467/1.822, allocations: 86.08 MB / 0.7472 GB, free: 1.617 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04407/1.866, allocations: 26.47 MB / 0.773 GB, free: 12.97 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001627/1.868, allocations: 190.9 kB / 0.7732 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01673/1.885, allocations: 6.064 MB / 0.7791 GB, free: 8.648 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1464): time 4.148e-05/1.885, allocations: 4 kB / 0.7791 GB, free: 8.645 MB / 0.545 GB Notification: Performance of matching and sorting (n=1464): time 0.3653/2.25, allocations: 17.84 MB / 0.7965 GB, free: 228.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007568/2.251, allocations: 0.7449 MB / 0.7973 GB, free: 228.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01847/2.27, allocations: 8.212 MB / 0.8053 GB, free: 227.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00241/2.272, allocations: 258.3 kB / 0.8055 GB, free: 227.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005501/2.278, allocations: 6.369 MB / 0.8118 GB, free: 224.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.006495/2.284, allocations: 4.996 MB / 0.8166 GB, free: 220.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009115/2.285, allocations: 323.2 kB / 0.8169 GB, free: 219.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0007391/2.286, allocations: 0.9107 MB / 0.8178 GB, free: 219.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006789/2.293, allocations: 4.121 MB / 0.8219 GB, free: 217.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009125/2.302, allocations: 7.687 MB / 0.8294 GB, free: 211.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009998/2.312, allocations: 5.522 MB / 0.8348 GB, free: 208.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001255/2.312, allocations: 28.53 kB / 0.8348 GB, free: 208.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.03804/2.35, allocations: 17.49 MB / 0.8519 GB, free: 199.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001689/2.35, allocations: 164.4 kB / 0.852 GB, free: 198.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001707/2.35, allocations: 104 kB / 0.8521 GB, free: 198.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0153/2.366, allocations: 8.268 MB / 0.8602 GB, free: 191.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01505/2.381, allocations: 3.621 MB / 0.8637 GB, free: 188.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05074/2.432, allocations: 30.77 MB / 0.8938 GB, free: 159.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01832/2.45, allocations: 1.278 MB / 0.895 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002949/2.453, allocations: 0.5976 MB / 0.8956 GB, free: 157.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 467 * Number of states: 0 () * Number of discrete variables: 20 (Tgen2.breakerStatusInInternal,L1to5.breakerStatusInternalB,L1to5.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$PRE.L1to5.breakerStatus,L1to5.breakerStatus,$PRE.Tgen2.breakerStatus,Tgen2.breakerStatus,$PRE.L1to5.breakerStatusInternalA,$PRE.L1to5.breakerStatusInternalB,$PRE.Tgen2.breakerStatusInInternal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1720): * Single equations (assignments): 1714 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {33 305,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.009368/2.462, allocations: 2.441 MB / 0.898 GB, free: 155.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004518/2.467, allocations: 1.409 MB / 0.8994 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03074/2.498, allocations: 14.71 MB / 0.9137 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/2.498, allocations: 136 kB / 0.9139 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/2.498, allocations: 8 kB / 0.9139 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000368/2.498, allocations: 79.69 kB / 0.914 GB, free: 138.8 MB / 0.545 GB 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.0633/2.561, allocations: 32.03 MB / 0.9452 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.706e-05/2.562, allocations: 12.02 kB / 0.9452 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01161/2.573, allocations: 2.544 MB / 0.9477 GB, free: 103.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01316/2.586, allocations: 4.994 MB / 0.9526 GB, free: 98.68 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001974/2.588, allocations: 248 kB / 0.9528 GB, free: 98.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04404/2.632, allocations: 29.83 MB / 0.982 GB, free: 68.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/2.632, allocations: 8.062 kB / 0.982 GB, free: 68.24 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3198/2.952, allocations: 23.14 MB / 1.005 GB, free: 204.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0113/2.964, allocations: 2.362 MB / 1.007 GB, free: 204.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006758/2.97, allocations: 239.1 kB / 1.007 GB, free: 204.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01394/2.984, allocations: 0.5506 MB / 1.008 GB, free: 204.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003526/2.988, allocations: 0.9143 MB / 1.009 GB, free: 204.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001419/2.989, allocations: 336.2 kB / 1.009 GB, free: 204.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01375/3.003, allocations: 5.141 MB / 1.014 GB, free: 204 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.41e-07/3.003, allocations: 2.844 kB / 1.014 GB, free: 204 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0287/3.032, allocations: 5.187 MB / 1.019 GB, free: 203.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,L1to5.breakerStatus,Tgen2.breakerStatus) * Number of discrete states: 12 (Tgen2.breakerStatus,$whenCondition10,$whenCondition9,L1to5.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1108): * Single equations (assignments): 1104 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 12,33 301} Notification: Performance of Backend phase and start with SimCode phase: time 0.04324/3.075, allocations: 17.38 MB / 1.036 GB, free: 195.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03/3.105, allocations: 14.29 MB / 1.05 GB, free: 189.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/3.105, allocations: 1.812 kB / 1.05 GB, free: 189.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01686/3.122, allocations: 8.029 MB / 1.058 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01248/3.135, allocations: 1.128 MB / 1.059 GB, free: 185.4 MB / 0.545 GB 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.5519/3.687, allocations: 203.9 MB / 1.258 GB, free: 201.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01153/3.698, allocations: 6.516 MB / 1.264 GB, free: 200.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009696/3.708, allocations: 1.732 MB / 1.266 GB, free: 200.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008851/3.717, allocations: 6.244 MB / 1.272 GB, free: 200.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/3.717, allocations: 3.469 kB / 1.272 GB, free: 200.3 MB / 0.545 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 836.7395205646751, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).