Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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 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.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow,fileNamePrefix="PowerGrids_symb_jac_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.0009199/0.0009199, allocations: 92.62 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.001531/0.001531, allocations: 174.5 kB / 16.58 MB, free: 6.852 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.672/1.672, allocations: 205.4 MB / 222.8 MB, free: 5.879 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06691/0.06691, allocations: 14.17 MB / 285.2 MB, free: 7.363 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.0005759/0.0005759, allocations: 19.98 kB / 349.6 MB, free: 17.1 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1328, allocations: 51.12 MB / 400.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.PowerFlow): time 0.01057/0.1434, allocations: 9.301 MB / 410 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00889/0.1524, allocations: 4.361 MB / 414.4 MB, free: 232 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001314/0.1537, allocations: 27.88 kB / 414.4 MB, free: 204 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.1551, allocations: 429.8 kB / 414.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005429/0.1605, allocations: 1.642 MB / 416.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.1616, allocations: 446.8 kB / 416.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004458/0.166, allocations: 2.899 MB / 419.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.1665, allocations: 184.1 kB / 420 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.1682, allocations: 0.7541 MB / 420.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.1694, allocations: 0.7896 MB / 421.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.926e-05/0.1695, allocations: 43.94 kB / 421.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.1706, allocations: 379.8 kB / 422 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.1708, allocations: 162.9 kB / 422.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.1712, allocations: 313 kB / 422.4 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.173, allocations: 1.496 MB / 423.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.173, allocations: 4 kB / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.173, allocations: 0 / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.173, allocations: 0 / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.006078/0.1791, allocations: 2.045 MB / 426 MB, free: 4.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.1792, allocations: 12.02 kB / 426 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/0.1794, allocations: 168.9 kB / 426.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009215/0.1803, allocations: 238.1 kB / 426.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.182, allocations: 0.9172 MB / 427.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.193e-05/0.1821, allocations: 82.19 kB / 427.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.1822, allocations: 104 kB / 427.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.1842, allocations: 1.06 MB / 428.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.1842, allocations: 0 / 428.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.541e-05/0.1843, allocations: 44 kB / 428.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.1843, allocations: 32 kB / 428.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.1861, allocations: 1.043 MB / 429.7 MB, free: 0.7617 MB / 318.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.298/0.4841, allocations: 7.524 MB / 437.2 MB, free: 17.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.4863, allocations: 1.102 MB / 438.3 MB, free: 16.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006098/0.4869, allocations: 319.2 kB / 438.6 MB, free: 16.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.052e-05/0.487, allocations: 12.23 kB / 438.6 MB, free: 16.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.4871, allocations: 43.92 kB / 438.7 MB, free: 16.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=88): time 5.009e-06/0.4871, allocations: 0 / 438.7 MB, free: 16.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=88): time 0.003647/0.4907, allocations: 1.354 MB / 440 MB, free: 16.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.4908, allocations: 61.64 kB / 440.1 MB, free: 16.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.4924, allocations: 0.9304 MB / 441 MB, free: 15.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.4925, allocations: 45.08 kB / 441 MB, free: 15.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.4931, allocations: 0.6455 MB / 441.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/0.4934, allocations: 319.1 kB / 442 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.4935, allocations: 27.12 kB / 442 MB, free: 15.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4936, allocations: 354.1 kB / 442.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006203/0.4943, allocations: 316.5 kB / 442.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009051/0.4952, allocations: 0.7148 MB / 443.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.4959, allocations: 446.8 kB / 443.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.496, allocations: 4.438 kB / 443.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002757/0.4987, allocations: 1.337 MB / 445.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.4988, allocations: 14.28 kB / 445.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/0.4988, allocations: 12.28 kB / 445.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/0.5004, allocations: 304.8 kB / 445.5 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.5017, allocations: 302.5 kB / 445.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/0.506, allocations: 3.487 MB / 449.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.5072, allocations: 133.5 kB / 449.4 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.5074, allocations: 56.05 kB / 449.5 MB, free: 11.83 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (157): * Single equations (assignments): 155 * 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 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of prepare postOptimizeDAE: time 0.000608/0.508, allocations: 305.8 kB / 449.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.5082, allocations: 126.7 kB / 449.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.5103, allocations: 0.8831 MB / 450.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.5104, allocations: 8.594 kB / 450.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5104, allocations: 0.8438 kB / 450.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.5104, allocations: 7.609 kB / 450.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.5143, allocations: 2.192 MB / 453 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5143, allocations: 2.625 kB / 453 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006642/0.515, allocations: 169.3 kB / 453.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005033/0.5155, allocations: 124.6 kB / 453.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.5156, allocations: 19.12 kB / 453.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003217/0.5188, allocations: 3.446 MB / 456.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.5188, allocations: 3.656 kB / 456.7 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.5214, allocations: 2.067 MB / 458.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004358/0.5218, allocations: 264.7 kB / 459.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.522, allocations: 18.84 kB / 459.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.5225, allocations: 30.69 kB / 459.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.5226, allocations: 73.03 kB / 459.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.5227, allocations: 21.41 kB / 459.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009486/0.5236, allocations: 0.6086 MB / 459.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5236, allocations: 0 / 459.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002061/0.5257, allocations: 389.6 kB / 460.2 MB, free: 6.914 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (76): * Single equations (assignments): 74 * 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 {(2,100.0%) 0} * Non-linear torn systems: 1 {12 0} Notification: Performance of Backend phase and start with SimCode phase: time 0.002295/0.528, allocations: 1.682 MB / 461.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.5304, allocations: 1.237 MB / 463.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5304, allocations: 0 / 463.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.5316, allocations: 0.7249 MB / 463.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008717/0.5325, allocations: 138 kB / 464 MB, free: 4.727 MB / 318.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.009972/0.5424, allocations: 6.751 MB / 470.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008968/0.5434, allocations: 1.105 MB / 471.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000762/0.5441, allocations: 154 kB / 472 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.5448, allocations: 431.3 kB / 472.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of SimCode: time 1.774e-06/0.5448, allocations: 0 / 472.4 MB, free: 14.25 MB / 334.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).