Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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) Running command: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 116.3 kB / 17.09 MB, free: 6.004 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.001649/0.001649, allocations: 188 kB / 18.03 MB, free: 5.082 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.45/1.45, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06072/0.06072, allocations: 14.17 MB / 285.4 MB, free: 13.88 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.00157/0.00157, allocations: 78.48 kB / 400 MB, free: 42.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09339, allocations: 50.14 MB / 450.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01565/0.1091, allocations: 15.95 MB / 466.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01333/0.1225, allocations: 6.846 MB / 472.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.126, allocations: 71.62 kB / 473 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002646/0.1287, allocations: 0.8338 MB / 473.8 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008551/0.1373, allocations: 2.642 MB / 476.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004/0.1413, allocations: 1.534 MB / 478 MB, free: 15.57 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2647:11-2647:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.009468/0.1508, allocations: 5.084 MB / 483.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002236/0.153, allocations: 0.7529 MB / 483.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003771/0.1568, allocations: 1.779 MB / 485.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003903/0.1607, allocations: 1.848 MB / 487.5 MB, free: 6.047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.162, allocations: 284 kB / 487.7 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003032/0.165, allocations: 0.7106 MB / 488.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.1664, allocations: 0.6302 MB / 489.1 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003327/0.1697, allocations: 1.64 MB / 490.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005823/0.1755, allocations: 4.234 MB / 495 MB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1756, allocations: 3.938 kB / 495 MB, free: 14.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1756, allocations: 0 / 495 MB, free: 14.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.818e-05/0.1756, allocations: 0 / 495 MB, free: 14.52 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.01482/0.1905, allocations: 4.275 MB / 499.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.1905, allocations: 8.031 kB / 499.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.1927, allocations: 418.8 kB / 499.7 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005068/0.1978, allocations: 1.959 MB / 0.4899 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.198, allocations: 164.4 kB / 0.49 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005821/0.1986, allocations: 227.9 kB / 0.4902 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00493/0.2035, allocations: 2.078 MB / 0.4923 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/0.2036, allocations: 0 / 0.4923 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002177/0.2038, allocations: 84 kB / 0.4923 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.284e-05/0.2038, allocations: 48 kB / 0.4924 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004005/0.2079, allocations: 1.912 MB / 0.4943 GB, free: 3.156 MB / 382.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.02153/0.2294, allocations: 12.23 MB / 0.5062 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004403/0.2338, allocations: 2.653 MB / 0.5088 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.2353, allocations: 0.8105 MB / 0.5096 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.2354, allocations: 22 kB / 0.5096 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.439e-05/0.2355, allocations: 60.55 kB / 0.5097 GB, free: 2.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 5.671e-06/0.2355, allocations: 7.938 kB / 0.5097 GB, free: 2.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01027/0.2458, allocations: 3.419 MB / 0.513 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.2459, allocations: 176.2 kB / 0.5132 GB, free: 14.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.2497, allocations: 1.876 MB / 0.515 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.25, allocations: 69.7 kB / 0.5151 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.2512, allocations: 1.114 MB / 0.5162 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009406/0.2521, allocations: 0.7164 MB / 0.5169 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009499/0.2531, allocations: 489.6 kB / 0.5173 GB, free: 10.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2533, allocations: 309.1 kB / 0.5176 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.2551, allocations: 0.8329 MB / 0.5184 GB, free: 9.039 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/0.2575, allocations: 1.475 MB / 0.5199 GB, free: 7.301 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003594/0.2611, allocations: 2.208 MB / 0.522 GB, free: 4.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/0.2612, allocations: 8 kB / 0.522 GB, free: 4.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.00968/0.2708, allocations: 3.788 MB / 0.5257 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.2709, allocations: 12 kB / 0.5258 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/0.271, allocations: 23.88 kB / 0.5258 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2972/0.5681, allocations: 1.785 MB / 0.5275 GB, free: 78.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/0.5709, allocations: 0.5281 MB / 0.528 GB, free: 78.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02907/0.6, allocations: 21.38 MB / 0.5489 GB, free: 62.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/0.6037, allocations: 278.7 kB / 0.5492 GB, free: 62.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006168/0.6043, allocations: 105.2 kB / 0.5493 GB, free: 62.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003005/0.6074, allocations: 1.075 MB / 0.5503 GB, free: 61.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0021/0.6095, allocations: 1.36 MB / 0.5517 GB, free: 60.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003424/0.6129, allocations: 2.051 MB / 0.5537 GB, free: 59.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.465e-05/0.613, allocations: 4.719 kB / 0.5537 GB, free: 59.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.007416/0.6204, allocations: 2.979 MB / 0.5566 GB, free: 58.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.6205, allocations: 15.72 kB / 0.5566 GB, free: 58.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.349e-05/0.6205, allocations: 19.59 kB / 0.5566 GB, free: 58.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006678/0.6272, allocations: 1.267 MB / 0.5578 GB, free: 58.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.6298, allocations: 0.6108 MB / 0.5584 GB, free: 57.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/0.6437, allocations: 16.57 MB / 0.5746 GB, free: 42.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/0.6473, allocations: 191.1 kB / 0.5748 GB, free: 42.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004443/0.6478, allocations: 104.6 kB / 0.5749 GB, free: 42.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 5 (PSS.firstWashoutVsi2.integrator.local_reset,PSS.secondWashoutVsi1.integrator.local_reset,PSS.firstWashoutVsi1.integrator.local_reset,AVR.firstOrderLim.I.local_reset,TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (286): * Single equations (assignments): 275 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,0,100.0%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(38,0), (2,0), (2,0), (2,0), (2,0), (10,0)} Notification: Performance of prepare postOptimizeDAE: time 0.00136/0.6492, allocations: 338 kB / 0.5752 GB, free: 42.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001668/0.6509, allocations: 263.2 kB / 0.5755 GB, free: 42.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004963/0.6558, allocations: 2.111 MB / 0.5775 GB, free: 41.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-05/0.6559, allocations: 11.95 kB / 0.5775 GB, free: 41.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.6559, allocations: 0 / 0.5775 GB, free: 41.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/0.6574, allocations: 0.5069 MB / 0.578 GB, free: 40.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000773/0.6582, allocations: 39.47 kB / 0.5781 GB, free: 40.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001996/0.6602, allocations: 77.22 kB / 0.5782 GB, free: 40.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.6605, allocations: 150.5 kB / 0.5783 GB, free: 40.43 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005199/0.6657, allocations: 2.093 MB / 0.5803 GB, free: 38.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02434/0.6901, allocations: 12.88 MB / 0.5929 GB, free: 25.74 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001322/0.6915, allocations: 0.6949 MB / 0.5936 GB, free: 25.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002031/0.6935, allocations: 1.218 MB / 0.5948 GB, free: 23.82 MB / 414.1 MB Notification: Performance of Backend: time 9.51e-07/0.6935, allocations: 0 / 0.5948 GB, free: 23.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01515/0.7087, allocations: 7.052 MB / 0.6017 GB, free: 16.55 MB / 414.1 MB Notification: Performance of SimCode: time 0.01526/0.724, allocations: 8.811 MB / 0.6103 GB, free: 7.684 MB / 414.1 MB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 0: TGOV.firstOrderLim.G.y >= 0.0 and TGOV.firstOrderLim.I.y > TGOV.firstOrderLim.lim.uMax or TGOV.firstOrderLim.G.y <= 0.0 and TGOV.firstOrderLim.I.y < TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 1: AVR.firstOrderLim.G.y >= 0.0 and AVR.firstOrderLim.I.y > AVR.firstOrderLim.lim.uMax or AVR.firstOrderLim.G.y <= 0.0 and AVR.firstOrderLim.I.y < AVR.firstOrderLim.lim.uMin. Error: Internal error SimCode DAEmode: The model PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat could not be translated