Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS.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: translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 105 kB / 16.97 MB, free: 6.168 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.0009986/0.0009986, allocations: 184.9 kB / 17.89 MB, free: 5.266 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.386/1.386, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06026/0.06026, allocations: 14.18 MB / 285.3 MB, free: 13.93 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.001998/0.001998, allocations: 67.89 kB / 349.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2274, allocations: 50.12 MB / 399.5 MB, free: 48.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithoutPSS): time 0.01059/0.238, allocations: 14.02 MB / 413.5 MB, free: 37.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009064/0.2471, allocations: 6.064 MB / 419.5 MB, free: 31.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.2498, allocations: 43.81 kB / 419.6 MB, free: 31.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.2517, allocations: 0.7023 MB / 420.3 MB, free: 30.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005689/0.2574, allocations: 2.404 MB / 422.7 MB, free: 28.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002154/0.2596, allocations: 1.239 MB / 423.9 MB, free: 26.86 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2646:11-2646:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.004142/0.2638, allocations: 4.397 MB / 428.3 MB, free: 22.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005982/0.2644, allocations: 470 kB / 428.8 MB, free: 21.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.2661, allocations: 1.495 MB / 430.3 MB, free: 20.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.2676, allocations: 1.615 MB / 431.9 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002627/0.2678, allocations: 228 kB / 432.1 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.269, allocations: 0.6364 MB / 432.7 MB, free: 17.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003238/0.2693, allocations: 0.5057 MB / 433.3 MB, free: 17.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008862/0.2702, allocations: 1.38 MB / 434.6 MB, free: 16.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002647/0.2729, allocations: 3.427 MB / 438.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2729, allocations: 4 kB / 438.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2729, allocations: 0 / 438.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.67e-05/0.273, allocations: 0 / 438.1 MB, free: 12.65 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: 418 * Number of variables: 418 Notification: Performance of Generate backend data structure: time 0.009745/0.2827, allocations: 3.706 MB / 441.8 MB, free: 8.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.2828, allocations: 8.031 kB / 441.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.284, allocations: 357.8 kB / 442.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.2861, allocations: 1.511 MB / 443.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.738e-05/0.2862, allocations: 147.2 kB / 443.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.2864, allocations: 187.9 kB / 444 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.2886, allocations: 1.723 MB / 445.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.2887, allocations: 3.984 kB / 445.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.2888, allocations: 68 kB / 445.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.2888, allocations: 44 kB / 445.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002406/0.2912, allocations: 1.683 MB / 447.5 MB, free: 3.035 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.0149/0.3062, allocations: 10.69 MB / 458.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/0.3096, allocations: 2.495 MB / 460.7 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.3108, allocations: 0.7473 MB / 461.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.3109, allocations: 25.98 kB / 461.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/0.3126, allocations: 0.9854 MB / 462.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=184): time 4.137e-06/0.3126, allocations: 4 kB / 462.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.01442/0.327, allocations: 5.598 MB / 468 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.3272, allocations: 338.4 kB / 468.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/0.3294, allocations: 1.47 MB / 469.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.3296, allocations: 61.7 kB / 469.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006688/0.3303, allocations: 0.8218 MB / 470.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.3309, allocations: 0.6353 MB / 471.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005842/0.3315, allocations: 412.4 kB / 471.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3317, allocations: 305.1 kB / 472 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.333, allocations: 0.7486 MB / 472.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.3347, allocations: 1.181 MB / 474 MB, free: 6.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/0.3376, allocations: 1.957 MB / 475.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.3376, allocations: 4 kB / 475.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007508/0.3452, allocations: 3.223 MB / 479.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.21e-05/0.3453, allocations: 63.39 kB / 479.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.3453, allocations: 12 kB / 479.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008328/0.3536, allocations: 1.62 MB / 480.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/0.3556, allocations: 463.3 kB / 481.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02199/0.3777, allocations: 19.03 MB / 0.4886 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/0.3799, allocations: 115.7 kB / 0.4887 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.3801, allocations: 87.98 kB / 0.4888 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001707/0.3818, allocations: 0.9576 MB / 0.4897 GB, free: 9.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001409/0.3832, allocations: 1.107 MB / 0.4908 GB, free: 8.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002504/0.3857, allocations: 1.851 MB / 0.4926 GB, free: 6.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.524e-06/0.3857, allocations: 4 kB / 0.4926 GB, free: 6.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.005676/0.3914, allocations: 2.743 MB / 0.4953 GB, free: 3.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.3915, allocations: 63.41 kB / 0.4954 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.3915, allocations: 15.98 kB / 0.4954 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00702/0.3985, allocations: 1.335 MB / 0.4967 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/0.4004, allocations: 475.3 kB / 0.4971 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/0.4162, allocations: 16.03 MB / 0.5128 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/0.4184, allocations: 91.81 kB / 0.5129 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.4186, allocations: 84 kB / 0.513 GB, free: 208 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 12 (NTHV.fault,$PRE.NTHV.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,NTHV.Y.im,$PRE.NTHV.Y.im,NTHV.Y.re,$PRE.NTHV.Y.re,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 (248): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,0,66.7%), (2,0,100.0%), (2,0,100.0%), (2,0,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(38,0), (2,0), (2,0), (2,0), (2,0), (4,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0005694/0.4192, allocations: 380 kB / 0.5133 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003939/0.4196, allocations: 205.5 kB / 0.5135 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.4237, allocations: 2.103 MB / 0.5156 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.4237, allocations: 7.969 kB / 0.5156 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.4238, allocations: 4 kB / 0.5156 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000876/0.4246, allocations: 442.4 kB / 0.516 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.4249, allocations: 36 kB / 0.516 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.426, allocations: 71.95 kB / 0.5161 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/0.4263, allocations: 153.7 kB / 0.5163 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004648/0.4309, allocations: 2.168 MB / 0.5184 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1782/0.6092, allocations: 11.18 MB / 0.5293 GB, free: 122.4 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009574/0.6102, allocations: 0.6552 MB / 0.5299 GB, free: 122.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.6114, allocations: 0.9584 MB / 0.5309 GB, free: 122.3 MB / 414.1 MB Notification: Performance of Backend: time 6.31e-07/0.6114, allocations: 0 / 0.5309 GB, free: 122.3 MB / 414.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.01183/0.6232, allocations: 6.697 MB / 0.5374 GB, free: 119.6 MB / 414.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.009827/0.6331, allocations: 7.83 MB / 0.5451 GB, free: 115.4 MB / 414.1 MB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 2: 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 3: 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.ControlledGridWithoutPSS could not be translated