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.0008408/0.0008408, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000913/0.000913, allocations: 168.7 kB / 15.95 MB, free: 204 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.499/1.499, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06021/0.06021, allocations: 14.16 MB / 284.6 MB, free: 7.117 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.0005031/0.0005032, allocations: 16 kB / 349 MB, free: 17.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.09979, allocations: 51.12 MB / 400.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow): time 0.2784/0.3783, allocations: 98.34 MB / 498.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.06653/0.4448, allocations: 35.61 MB / 0.5215 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02133/0.4662, allocations: 326.8 kB / 0.5218 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01844/0.4847, allocations: 3.997 MB / 0.5257 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04682/0.5315, allocations: 12.78 MB / 0.5382 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008554/0.5401, allocations: 1.787 MB / 0.54 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.05371/0.5938, allocations: 33.39 MB / 0.5726 GB, free: 1.035 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008395/0.6022, allocations: 2.114 MB / 0.5746 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02302/0.6253, allocations: 8.633 MB / 0.5831 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4869/1.112, allocations: 9.483 MB / 0.5923 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006178/1.118, allocations: 484.3 kB / 0.5928 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02015/1.139, allocations: 1.741 MB / 0.5945 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007147/1.146, allocations: 1.99 MB / 0.5964 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01484/1.161, allocations: 3.356 MB / 0.5997 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03206/1.193, allocations: 16.37 MB / 0.6157 GB, free: 13.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/1.193, allocations: 0 / 0.6157 GB, free: 13.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.026e-06/1.193, allocations: 2.594 kB / 0.6157 GB, free: 13.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000888/1.194, allocations: 0 / 0.6157 GB, free: 13.21 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.07696/1.271, allocations: 21.64 MB / 0.6368 GB, free: 4.625 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.271, allocations: 15.52 kB / 0.6368 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006718/1.277, allocations: 1.726 MB / 0.6385 GB, free: 4.176 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01547/1.293, allocations: 2.736 MB / 0.6412 GB, free: 2.992 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02419/1.317, allocations: 8.955 MB / 0.6499 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001132/1.318, allocations: 1.065 MB / 0.651 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004008/1.322, allocations: 1.296 MB / 0.6522 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03261/1.355, allocations: 13.39 MB / 0.6653 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003208/1.355, allocations: 17.66 kB / 0.6653 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/1.357, allocations: 0.5447 MB / 0.6659 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002208/1.357, allocations: 334.8 kB / 0.6662 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02849/1.386, allocations: 13.62 MB / 0.6795 GB, free: 5.73 MB / 462.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.1383/1.524, allocations: 86.08 MB / 0.7635 GB, free: 5.414 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2738/1.798, allocations: 26.47 MB / 0.7894 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01267/1.81, allocations: 6.319 MB / 0.7956 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001106/1.812, allocations: 187.1 kB / 0.7957 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0102/1.822, allocations: 6.14 MB / 0.8017 GB, free: 195.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1464): time 1.766e-05/1.822, allocations: 0 / 0.8017 GB, free: 195.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1464): time 0.02914/1.851, allocations: 17.84 MB / 0.8192 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002285/1.851, allocations: 0.7469 MB / 0.8199 GB, free: 188 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009944/1.861, allocations: 8.209 MB / 0.8279 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001761/1.863, allocations: 260.5 kB / 0.8282 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004112/1.867, allocations: 6.367 MB / 0.8344 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.005136/1.872, allocations: 4.991 MB / 0.8392 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000728/1.873, allocations: 324.3 kB / 0.8396 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0006687/1.874, allocations: 0.9117 MB / 0.8404 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00616/1.88, allocations: 4.137 MB / 0.8445 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008177/1.888, allocations: 7.768 MB / 0.8521 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008718/1.897, allocations: 5.537 MB / 0.8575 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-05/1.897, allocations: 31.94 kB / 0.8575 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.04289/1.94, allocations: 17.61 MB / 0.8747 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000196/1.94, allocations: 166.6 kB / 0.8749 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001998/1.94, allocations: 104 kB / 0.875 GB, free: 144 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03618/1.976, allocations: 5.785 MB / 0.8806 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02022/1.997, allocations: 3.621 MB / 0.8841 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07123/2.068, allocations: 30.27 MB / 0.9137 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01401/2.082, allocations: 1.282 MB / 0.915 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/2.084, allocations: 0.5976 MB / 0.9155 GB, free: 104 MB / 0.5294 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 {338 0,14 0} Notification: Performance of prepare postOptimizeDAE: time 0.005733/2.089, allocations: 2.443 MB / 0.9179 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003298/2.093, allocations: 1.409 MB / 0.9193 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02292/2.116, allocations: 14.84 MB / 0.9338 GB, free: 85.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.088e-05/2.116, allocations: 140 kB / 0.9339 GB, free: 85.04 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/2.116, allocations: 8 kB / 0.9339 GB, free: 85.04 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001573/2.116, allocations: 71.69 kB / 0.934 GB, free: 84.96 MB / 0.5294 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.04679/2.163, allocations: 32.27 MB / 0.9655 GB, free: 52.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.04e-05/2.163, allocations: 4.375 kB / 0.9655 GB, free: 52.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009408/2.172, allocations: 2.548 MB / 0.968 GB, free: 49.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007874/2.18, allocations: 2.142 MB / 0.9701 GB, free: 47.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001303/2.181, allocations: 248 kB / 0.9703 GB, free: 47.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3022/2.484, allocations: 29.56 MB / 0.9992 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/2.484, allocations: 7.438 kB / 0.9992 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02909/2.513, allocations: 14.64 MB / 1.014 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008454/2.521, allocations: 2.367 MB / 1.016 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003925/2.525, allocations: 238.7 kB / 1.016 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01076/2.536, allocations: 0.5487 MB / 1.017 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00242/2.539, allocations: 0.9137 MB / 1.017 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009032/2.539, allocations: 340.6 kB / 1.018 GB, free: 179 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01039/2.55, allocations: 5.136 MB / 1.023 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/2.55, allocations: 0 / 1.023 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.02105/2.571, allocations: 4.839 MB / 1.028 GB, free: 176.6 MB / 0.5294 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 {14 0,334 0} Notification: Performance of Backend phase and start with SimCode phase: time 0.03482/2.606, allocations: 16.55 MB / 1.044 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03578/2.642, allocations: 17.54 MB / 1.061 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/2.642, allocations: 3.875 kB / 1.061 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.02363/2.665, allocations: 11.22 MB / 1.072 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01637/2.682, allocations: 1.35 MB / 1.073 GB, free: 146 MB / 0.5294 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.2129/2.895, allocations: 129.9 MB / 1.2 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006196/2.901, allocations: 6.037 MB / 1.206 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009106/2.91, allocations: 1.734 MB / 1.208 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007938/2.918, allocations: 6.244 MB / 1.214 GB, free: 76 kB / 0.5294 GB Notification: Performance of SimCode: time 8.12e-07/2.918, allocations: 0 / 1.214 GB, free: 76 kB / 0.5294 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 836.7395205646751, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).