Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS.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.ControlledGridWithPSS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 105.2 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.001875/0.001875, allocations: 183.6 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 2.207/2.207, allocations: 205.1 MB / 223.8 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06747/0.06747, 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.002224/0.002224, allocations: 63.91 kB / 349.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3978, allocations: 50.13 MB / 399.5 MB, free: 48.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithPSS): time 0.02216/0.42, allocations: 16.08 MB / 415.5 MB, free: 35.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01621/0.4363, allocations: 6.851 MB / 422.4 MB, free: 28.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005187/0.4416, allocations: 75.56 kB / 422.5 MB, free: 28.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003861/0.4455, allocations: 0.8261 MB / 423.3 MB, free: 27.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01128/0.4568, allocations: 2.542 MB / 425.8 MB, free: 24.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006254/0.4631, allocations: 1.543 MB / 427.4 MB, free: 23.39 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.01088/0.474, allocations: 5.075 MB / 432.4 MB, free: 18.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.4761, allocations: 0.7411 MB / 433.2 MB, free: 17.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004136/0.4802, allocations: 1.732 MB / 434.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003708/0.484, allocations: 1.832 MB / 436.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009554/0.485, allocations: 284 kB / 437 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002857/0.4878, allocations: 0.6989 MB / 437.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006933/0.4886, allocations: 0.6186 MB / 438.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.4909, allocations: 1.66 MB / 440 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005986/0.4969, allocations: 4.104 MB / 444.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.497, allocations: 0 / 444.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.497, allocations: 0 / 444.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.4971, allocations: 0 / 444.1 MB, free: 6.582 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.02035/0.5175, allocations: 4.266 MB / 448.4 MB, free: 2.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/0.5176, allocations: 8.031 kB / 448.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/0.5206, allocations: 424.9 kB / 448.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005258/0.5259, allocations: 1.848 MB / 450.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.5261, allocations: 167.9 kB / 450.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006224/0.5268, allocations: 223.9 kB / 451 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00612/0.5329, allocations: 2.092 MB / 453.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.98e-05/0.533, allocations: 4 kB / 453.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.5333, allocations: 84 kB / 453.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.387e-05/0.5334, allocations: 48 kB / 453.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006306/0.5397, allocations: 1.936 MB / 455.2 MB, free: 11.3 MB / 334.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.03211/0.5718, allocations: 12.26 MB / 467.5 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007264/0.5791, allocations: 2.729 MB / 470.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/0.5817, allocations: 0.8619 MB / 471 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001612/0.5819, allocations: 25.98 kB / 471.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003148/0.5851, allocations: 1.096 MB / 472.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=209): time 1.063e-05/0.5851, allocations: 0 / 472.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.02584/0.611, allocations: 6.128 MB / 478.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002329/0.6113, allocations: 368.1 kB / 478.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004271/0.6155, allocations: 1.805 MB / 480.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003804/0.616, allocations: 73.7 kB / 480.5 MB, free: 496 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.6173, allocations: 1.042 MB / 481.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.6186, allocations: 0.7317 MB / 482.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.6196, allocations: 469.2 kB / 482.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.6198, allocations: 313 kB / 483.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/0.6224, allocations: 0.8209 MB / 483.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003334/0.6258, allocations: 1.366 MB / 485.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005762/0.6316, allocations: 2.209 MB / 487.5 MB, free: 9.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.6316, allocations: 4 kB / 487.5 MB, free: 9.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.01374/0.6454, allocations: 3.585 MB / 491 MB, free: 5.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.6455, allocations: 70.05 kB / 491.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.719e-05/0.6456, allocations: 12 kB / 491.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01467/0.6603, allocations: 1.739 MB / 492.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/0.6642, allocations: 0.5187 MB / 493.4 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04004/0.7043, allocations: 22.03 MB / 0.5033 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/0.7085, allocations: 127.7 kB / 0.5035 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005109/0.709, allocations: 96 kB / 0.5036 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003354/0.7124, allocations: 1.087 MB / 0.5046 GB, free: 9.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002643/0.7151, allocations: 1.272 MB / 0.5059 GB, free: 8.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004941/0.72, allocations: 2.081 MB / 0.5079 GB, free: 6.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.521e-05/0.7201, allocations: 4 kB / 0.5079 GB, free: 6.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=337) (initialization_lambda0): time 0.01084/0.7309, allocations: 3.081 MB / 0.5109 GB, free: 3.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.119e-05/0.7311, allocations: 67.5 kB / 0.511 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.503e-05/0.7311, allocations: 12 kB / 0.511 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01276/0.7439, allocations: 1.445 MB / 0.5124 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003737/0.7477, allocations: 0.5304 MB / 0.5129 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3422/1.09, allocations: 19.02 MB / 0.5315 GB, free: 119.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/1.094, allocations: 106.6 kB / 0.5316 GB, free: 119.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006448/1.095, allocations: 96.53 kB / 0.5317 GB, free: 119.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 15 (NTHV.fault,$PRE.NTHV.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,NTHV.Y.im,$PRE.NTHV.Y.im,NTHV.Y.re,$PRE.NTHV.Y.re,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 (282): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(3,0,66.7%), (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), (4,0)} Notification: Performance of prepare postOptimizeDAE: time 0.001374/1.097, allocations: 398.9 kB / 0.5321 GB, free: 119.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.098, allocations: 247.8 kB / 0.5323 GB, free: 119.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007417/1.105, allocations: 2.341 MB / 0.5346 GB, free: 119.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.791e-05/1.105, allocations: 12.67 kB / 0.5346 GB, free: 119.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/1.105, allocations: 0 / 0.5346 GB, free: 119.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.107, allocations: 0.499 MB / 0.5351 GB, free: 119 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009561/1.108, allocations: 40.56 kB / 0.5351 GB, free: 119 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003134/1.112, allocations: 80.97 kB / 0.5352 GB, free: 118.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006258/1.112, allocations: 163.3 kB / 0.5354 GB, free: 118.9 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01112/1.123, allocations: 2.424 MB / 0.5377 GB, free: 118 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.04132/1.165, allocations: 13.69 MB / 0.5511 GB, free: 111.3 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002238/1.167, allocations: 0.7642 MB / 0.5518 GB, free: 110.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002949/1.17, allocations: 1.185 MB / 0.553 GB, free: 109.9 MB / 414.1 MB Notification: Performance of Backend: time 2.084e-06/1.17, allocations: 0 / 0.553 GB, free: 109.9 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.01957/1.19, allocations: 7.554 MB / 0.5604 GB, free: 102.2 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.01714/1.207, allocations: 9.12 MB / 0.5693 GB, free: 93.14 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.ControlledGridWithPSS could not be translated