Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Examples_IEEE14bus_IEEE14busPowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow,fileNamePrefix="PowerGrids_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.001013/0.001013, allocations: 99.47 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.0009569/0.0009568, 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.742/1.742, 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.05864/0.05864, allocations: 14.17 MB / 284.5 MB, free: 7.141 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.0005283/0.0005285, allocations: 16 kB / 348.9 MB, free: 17.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1252, allocations: 51.12 MB / 400 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow): time 0.3187/0.444, allocations: 87.67 MB / 487.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.07087/0.5149, allocations: 35.69 MB / 0.5111 GB, free: 15.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02454/0.5395, allocations: 314.8 kB / 0.5114 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02236/0.5619, allocations: 3.954 MB / 0.5153 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.06216/0.6241, allocations: 14.25 MB / 0.5292 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01061/0.6347, allocations: 1.787 MB / 0.5309 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.05769/0.6924, allocations: 24.87 MB / 0.5552 GB, free: 2.371 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008205/0.7007, allocations: 2.103 MB / 0.5573 GB, free: 216 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02756/0.7283, allocations: 9.275 MB / 0.5663 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02184/0.7502, allocations: 9.189 MB / 0.5753 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005521/0.7558, allocations: 484 kB / 0.5758 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01709/0.7729, allocations: 1.881 MB / 0.5776 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006323/0.7792, allocations: 1.966 MB / 0.5795 GB, free: 9.348 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01438/0.7936, allocations: 3.353 MB / 0.5828 GB, free: 5.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6389/1.433, allocations: 16.19 MB / 0.5986 GB, free: 21.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/1.433, allocations: 0 / 0.5986 GB, free: 21.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.094e-06/1.433, allocations: 0.9688 kB / 0.5986 GB, free: 21.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001064/1.434, allocations: 0 / 0.5986 GB, free: 21.79 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.08976/1.523, allocations: 21.64 MB / 0.6197 GB, free: 15.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.524, allocations: 12.86 kB / 0.6197 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007264/1.531, allocations: 1.726 MB / 0.6214 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01778/1.549, allocations: 2.741 MB / 0.6241 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03019/1.579, allocations: 8.955 MB / 0.6329 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001629/1.581, allocations: 1.068 MB / 0.6339 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004813/1.585, allocations: 1.294 MB / 0.6352 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03985/1.625, allocations: 13.28 MB / 0.6481 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006231/1.626, allocations: 17.47 kB / 0.6481 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003333/1.629, allocations: 0.5504 MB / 0.6487 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000246/1.629, allocations: 335 kB / 0.649 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03394/1.663, allocations: 13.61 MB / 0.6623 GB, free: 2.098 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.146/1.809, allocations: 86.07 MB / 0.7463 GB, free: 1.801 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04102/1.85, allocations: 26.48 MB / 0.7722 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001486/1.852, allocations: 191.1 kB / 0.7724 GB, free: 12.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01206/1.864, allocations: 6.055 MB / 0.7783 GB, free: 8.836 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1464): time 1.86e-05/1.864, allocations: 4 kB / 0.7783 GB, free: 8.832 MB / 0.545 GB Notification: Performance of matching and sorting (n=1464): time 0.3331/2.197, allocations: 17.85 MB / 0.7957 GB, free: 228.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004288/2.198, allocations: 0.7452 MB / 0.7965 GB, free: 227.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.212, allocations: 8.214 MB / 0.8045 GB, free: 227.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002288/2.214, allocations: 261.5 kB / 0.8047 GB, free: 227.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005076/2.219, allocations: 6.366 MB / 0.8109 GB, free: 224.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.006461/2.226, allocations: 4.995 MB / 0.8158 GB, free: 220.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009397/2.227, allocations: 326.2 kB / 0.8161 GB, free: 219.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0007715/2.228, allocations: 0.907 MB / 0.817 GB, free: 219.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006639/2.234, allocations: 4.116 MB / 0.821 GB, free: 217.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009689/2.244, allocations: 7.685 MB / 0.8285 GB, free: 211.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/2.256, allocations: 5.52 MB / 0.8339 GB, free: 208.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002818/2.257, allocations: 33.41 kB / 0.834 GB, free: 208.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.0445/2.301, allocations: 17.49 MB / 0.851 GB, free: 199.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/2.302, allocations: 170 kB / 0.8512 GB, free: 199.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002011/2.302, allocations: 100 kB / 0.8513 GB, free: 199.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01684/2.319, allocations: 8.269 MB / 0.8594 GB, free: 191.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01581/2.334, allocations: 3.621 MB / 0.8629 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04964/2.384, allocations: 30.77 MB / 0.893 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01866/2.403, allocations: 1.278 MB / 0.8942 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003372/2.406, allocations: 0.5976 MB / 0.8948 GB, free: 157.9 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.01067/2.417, allocations: 2.437 MB / 0.8972 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005536/2.422, allocations: 1.413 MB / 0.8986 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02809/2.451, allocations: 14.71 MB / 0.9129 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001159/2.451, allocations: 140 kB / 0.9131 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/2.451, allocations: 0 / 0.9131 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002912/2.451, allocations: 75.69 kB / 0.9131 GB, free: 139 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.06253/2.514, allocations: 32.04 MB / 0.9444 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.059e-05/2.514, allocations: 4 kB / 0.9444 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01212/2.526, allocations: 2.548 MB / 0.9469 GB, free: 104 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01266/2.539, allocations: 4.998 MB / 0.9518 GB, free: 98.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002223/2.541, allocations: 244 kB / 0.952 GB, free: 98.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04541/2.586, allocations: 29.83 MB / 0.9812 GB, free: 68.47 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/2.586, allocations: 7.938 kB / 0.9812 GB, free: 68.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3316/2.918, allocations: 15.28 MB / 0.9961 GB, free: 204.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0132/2.931, allocations: 2.361 MB / 0.9984 GB, free: 204.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007418/2.939, allocations: 238.1 kB / 0.9986 GB, free: 204.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01509/2.954, allocations: 0.5427 MB / 0.9991 GB, free: 204.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004546/2.958, allocations: 0.9134 MB / 1 GB, free: 204.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001865/2.96, allocations: 341.5 kB / 1 GB, free: 204.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01606/2.976, allocations: 5.136 MB / 1.005 GB, free: 204.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.3e-07/2.976, allocations: 1.281 kB / 1.005 GB, free: 204.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02911/3.005, allocations: 5.131 MB / 1.01 GB, free: 204.5 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.03939/3.045, allocations: 17.39 MB / 1.027 GB, free: 199.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.031/3.076, allocations: 14.28 MB / 1.041 GB, free: 193.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/3.076, allocations: 3.438 kB / 1.041 GB, free: 193.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.02089/3.097, allocations: 8.039 MB / 1.049 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01959/3.117, allocations: 1.121 MB / 1.05 GB, free: 189.6 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.5439/3.66, allocations: 197 MB / 1.243 GB, free: 198.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/3.672, allocations: 6.206 MB / 1.249 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01019/3.682, allocations: 1.729 MB / 1.25 GB, free: 197 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01022/3.693, allocations: 6.243 MB / 1.256 GB, free: 196.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.373e-06/3.693, allocations: 3.938 kB / 1.256 GB, free: 196.9 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).