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.0009794/0.0009793, allocations: 92.7 kB / 15.71 MB, free: 464 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.001345/0.001345, allocations: 175.2 kB / 16.58 MB, free: 6.855 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.835/1.835, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06659/0.0666, allocations: 14.17 MB / 285.2 MB, free: 7.125 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.0005218/0.000522, allocations: 8 kB / 349.6 MB, free: 17.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1273, allocations: 51.12 MB / 400.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.IEEE14bus.IEEE14busPowerFlow): time 0.36/0.4873, allocations: 98.33 MB / 499.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.07409/0.5614, allocations: 35.61 MB / 0.5221 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0283/0.5898, allocations: 326.8 kB / 0.5224 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02255/0.6124, allocations: 4.001 MB / 0.5263 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.05842/0.6708, allocations: 12.78 MB / 0.5388 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0111/0.6819, allocations: 1.791 MB / 0.5406 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06563/0.7476, allocations: 33.39 MB / 0.5732 GB, free: 1.188 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01184/0.7595, allocations: 2.114 MB / 0.5752 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02951/0.7891, allocations: 8.637 MB / 0.5837 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.634/1.423, allocations: 9.484 MB / 0.5929 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007471/1.431, allocations: 484.2 kB / 0.5934 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02252/1.453, allocations: 1.738 MB / 0.5951 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007702/1.461, allocations: 1.982 MB / 0.597 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01884/1.48, allocations: 3.357 MB / 0.6003 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03435/1.514, allocations: 16.37 MB / 0.6163 GB, free: 13.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/1.514, allocations: 2.625 kB / 0.6163 GB, free: 13.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.685e-06/1.514, allocations: 0 / 0.6163 GB, free: 13.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001125/1.515, allocations: 0 / 0.6163 GB, free: 13.28 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.08333/1.599, allocations: 21.64 MB / 0.6374 GB, free: 4.707 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/1.599, allocations: 13.11 kB / 0.6374 GB, free: 4.703 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007283/1.606, allocations: 1.733 MB / 0.6391 GB, free: 4.254 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.016/1.622, allocations: 2.736 MB / 0.6418 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02636/1.648, allocations: 8.958 MB / 0.6506 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/1.65, allocations: 1.06 MB / 0.6516 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004838/1.655, allocations: 1.296 MB / 0.6529 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04668/1.701, allocations: 13.38 MB / 0.6659 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008411/1.702, allocations: 20.23 kB / 0.666 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00477/1.707, allocations: 0.5493 MB / 0.6665 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000419/1.708, allocations: 337.8 kB / 0.6668 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04105/1.749, allocations: 13.61 MB / 0.6801 GB, free: 5.945 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.1511/1.9, allocations: 86.09 MB / 0.7642 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3224/2.222, allocations: 26.47 MB / 0.79 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01844/2.241, allocations: 6.318 MB / 0.7962 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00165/2.242, allocations: 190.7 kB / 0.7964 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01402/2.256, allocations: 6.141 MB / 0.8024 GB, free: 195.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1464): time 2.844e-05/2.257, allocations: 0.625 kB / 0.8024 GB, free: 195.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1464): time 0.03835/2.295, allocations: 17.83 MB / 0.8198 GB, free: 189 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002756/2.295, allocations: 0.7438 MB / 0.8205 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01439/2.31, allocations: 8.213 MB / 0.8285 GB, free: 185.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002337/2.312, allocations: 258.9 kB / 0.8288 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005385/2.317, allocations: 6.357 MB / 0.835 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.007067/2.324, allocations: 5.002 MB / 0.8399 GB, free: 177 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/2.325, allocations: 327.2 kB / 0.8402 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000768/2.326, allocations: 0.9032 MB / 0.8411 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006759/2.333, allocations: 4.143 MB / 0.8451 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008874/2.342, allocations: 7.767 MB / 0.8527 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00853/2.35, allocations: 5.539 MB / 0.8581 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.496e-05/2.351, allocations: 32 kB / 0.8581 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.03343/2.384, allocations: 17.6 MB / 0.8753 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002141/2.384, allocations: 162.5 kB / 0.8755 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002537/2.384, allocations: 104 kB / 0.8756 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02364/2.408, allocations: 5.782 MB / 0.8812 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01502/2.423, allocations: 3.629 MB / 0.8848 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0631/2.486, allocations: 30.28 MB / 0.9143 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01969/2.506, allocations: 1.277 MB / 0.9156 GB, free: 105 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003341/2.509, allocations: 0.6015 MB / 0.9162 GB, free: 104.4 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.01238/2.522, allocations: 2.442 MB / 0.9186 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006535/2.528, allocations: 1.409 MB / 0.9199 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03603/2.564, allocations: 14.84 MB / 0.9344 GB, free: 85.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.631e-05/2.565, allocations: 140 kB / 0.9346 GB, free: 85.52 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.352e-05/2.565, allocations: 7.953 kB / 0.9346 GB, free: 85.52 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003759/2.565, allocations: 75.73 kB / 0.9346 GB, free: 85.44 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.07946/2.645, allocations: 32.27 MB / 0.9662 GB, free: 52.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000145/2.645, allocations: 4 kB / 0.9662 GB, free: 52.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01089/2.656, allocations: 2.544 MB / 0.9686 GB, free: 50.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008973/2.665, allocations: 2.153 MB / 0.9707 GB, free: 47.96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002447/2.667, allocations: 248 kB / 0.971 GB, free: 47.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4317/3.099, allocations: 29.55 MB / 0.9998 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/3.099, allocations: 4.281 kB / 0.9998 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04494/3.144, allocations: 22.55 MB / 1.022 GB, free: 178 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009288/3.153, allocations: 2.371 MB / 1.024 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005411/3.159, allocations: 238.4 kB / 1.024 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01226/3.171, allocations: 0.5476 MB / 1.025 GB, free: 176 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004363/3.175, allocations: 0.9068 MB / 1.026 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002233/3.178, allocations: 341.3 kB / 1.026 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01078/3.188, allocations: 5.139 MB / 1.031 GB, free: 174 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/3.188, allocations: 0 / 1.031 GB, free: 174 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.02557/3.214, allocations: 4.892 MB / 1.036 GB, free: 173.3 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.03908/3.253, allocations: 16.55 MB / 1.052 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03885/3.292, allocations: 17.54 MB / 1.069 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/3.292, allocations: 0 / 1.069 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.02777/3.32, allocations: 11.22 MB / 1.08 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0212/3.341, allocations: 1.351 MB / 1.082 GB, free: 139.1 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.2738/3.615, allocations: 136.5 MB / 1.215 GB, free: 56 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3207/3.936, allocations: 6.356 MB / 1.221 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01178/3.948, allocations: 1.729 MB / 1.223 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01163/3.959, allocations: 6.242 MB / 1.229 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/3.959, allocations: 0 / 1.229 GB, free: 181.9 MB / 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).