Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen.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.ControlledGridWithControlledGen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 101.2 kB / 16.96 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.001944/0.001945, allocations: 187.6 kB / 17.9 MB, free: 5.262 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.933/1.933, 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.06759/0.06759, allocations: 14.16 MB / 285.3 MB, free: 13.94 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.001749/0.00175, allocations: 67.81 kB / 349.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.346, allocations: 50.13 MB / 399.5 MB, free: 48.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen): time 0.01756/0.3636, allocations: 16.26 MB / 415.7 MB, free: 35.05 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.3805, allocations: 7.182 MB / 422.9 MB, free: 27.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005826/0.3863, allocations: 71.62 kB / 423 MB, free: 27.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003973/0.3904, allocations: 0.8455 MB / 423.8 MB, free: 26.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009992/0.4004, allocations: 2.6 MB / 426.4 MB, free: 24.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004455/0.4049, allocations: 1.718 MB / 428.1 MB, free: 22.62 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.009361/0.4143, allocations: 5.497 MB / 433.6 MB, free: 17.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002425/0.4167, allocations: 0.8664 MB / 434.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004313/0.4211, allocations: 1.833 MB / 436.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004069/0.4251, allocations: 1.922 MB / 438.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001564/0.4267, allocations: 356 kB / 438.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003553/0.4303, allocations: 0.7692 MB / 439.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.4319, allocations: 0.7005 MB / 440.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004086/0.436, allocations: 1.781 MB / 441.9 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008027/0.4441, allocations: 4.903 MB / 446.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4441, allocations: 4 kB / 446.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4441, allocations: 0 / 446.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002104/0.4444, allocations: 0 / 446.8 MB, free: 3.91 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.01653/0.4609, allocations: 4.36 MB / 451.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.762e-05/0.461, allocations: 11.97 kB / 451.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/0.4629, allocations: 428.9 kB / 451.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004394/0.4673, allocations: 2.079 MB / 453.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.4675, allocations: 176 kB / 453.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003943/0.4679, allocations: 228 kB / 454 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004624/0.4725, allocations: 2.187 MB / 456.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/0.4726, allocations: 4 kB / 456.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/0.4728, allocations: 84 kB / 456.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-05/0.4728, allocations: 48 kB / 456.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003925/0.4768, allocations: 2.049 MB / 458.4 MB, free: 7.984 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.02384/0.5006, allocations: 13.16 MB / 471.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004867/0.5055, allocations: 2.802 MB / 474.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.5073, allocations: 0.9088 MB / 475.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.5075, allocations: 29.98 kB / 475.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/0.5097, allocations: 1.131 MB / 476.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=209): time 8.025e-06/0.5097, allocations: 0 / 476.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=210): time 0.01875/0.5285, allocations: 6.364 MB / 482.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002484/0.5288, allocations: 372.1 kB / 483.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005208/0.534, allocations: 1.905 MB / 485.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004134/0.5345, allocations: 73.7 kB / 485.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/0.5361, allocations: 1.058 MB / 486.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001223/0.5374, allocations: 0.7316 MB / 486.9 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.5387, allocations: 477.6 kB / 487.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5389, allocations: 301.1 kB / 487.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.5412, allocations: 0.9383 MB / 488.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/0.5439, allocations: 1.476 MB / 490.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004627/0.5485, allocations: 2.355 MB / 492.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-05/0.5486, allocations: 4 kB / 492.5 MB, free: 3.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=345) (initialization): time 0.01154/0.5601, allocations: 4.003 MB / 496.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-05/0.5603, allocations: 68.08 kB / 496.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.582e-05/0.5603, allocations: 12 kB / 496.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009634/0.57, allocations: 1.82 MB / 498.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002724/0.5727, allocations: 0.5305 MB / 498.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03517/0.6079, allocations: 22.22 MB / 0.5089 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/0.6115, allocations: 143.7 kB / 0.509 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006044/0.6122, allocations: 96 kB / 0.5091 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003564/0.6157, allocations: 1.208 MB / 0.5103 GB, free: 4.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002725/0.6185, allocations: 1.355 MB / 0.5116 GB, free: 2.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00447/0.623, allocations: 2.199 MB / 0.5138 GB, free: 204 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-05/0.623, allocations: 7.938 kB / 0.5138 GB, free: 196 kB / 398.1 MB Notification: Performance of matching and sorting (n=345) (initialization_lambda0): time 0.009449/0.6325, allocations: 3.156 MB / 0.5169 GB, free: 12.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.6326, allocations: 68.08 kB / 0.5169 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-05/0.6327, allocations: 15.92 kB / 0.5169 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007153/0.6399, allocations: 1.286 MB / 0.5182 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/0.6427, allocations: 0.6008 MB / 0.5188 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3228/0.9656, allocations: 17.02 MB / 0.5354 GB, free: 116.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.9691, allocations: 101.2 kB / 0.5355 GB, free: 116.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/0.9694, allocations: 97.2 kB / 0.5356 GB, free: 116.5 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,ctrlGEN.PSS.firstWashoutVsi2.integrator.local_reset,ctrlGEN.PSS.secondWashoutVsi1.integrator.local_reset,ctrlGEN.PSS.firstWashoutVsi1.integrator.local_reset,ctrlGEN.AVR.firstOrderLim.I.local_reset,ctrlGEN.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): 273 * Array equations: 0 * Algorithm blocks: 2 * 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.0009184/0.9703, allocations: 397.2 kB / 0.536 GB, free: 116.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006554/0.971, allocations: 251.8 kB / 0.5362 GB, free: 116.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005881/0.9769, allocations: 2.43 MB / 0.5386 GB, free: 115.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.9769, allocations: 12.16 kB / 0.5386 GB, free: 115.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.9769, allocations: 2.812 kB / 0.5386 GB, free: 115.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.9782, allocations: 0.5367 MB / 0.5391 GB, free: 115.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003577/0.9785, allocations: 45.28 kB / 0.5392 GB, free: 115.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.9799, allocations: 84.22 kB / 0.5392 GB, free: 115.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00033/0.9802, allocations: 161.8 kB / 0.5394 GB, free: 115.4 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005991/0.9862, allocations: 2.535 MB / 0.5419 GB, free: 114.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02786/1.014, allocations: 14.87 MB / 0.5564 GB, free: 106.5 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001351/1.016, allocations: 0.8229 MB / 0.5572 GB, free: 105.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001884/1.017, allocations: 1.252 MB / 0.5584 GB, free: 104.4 MB / 414.1 MB Notification: Performance of Backend: time 7.21e-07/1.017, allocations: 0 / 0.5584 GB, free: 104.4 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.01303/1.03, allocations: 7.433 MB / 0.5657 GB, free: 96.82 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.01293/1.043, allocations: 9.307 MB / 0.5748 GB, free: 87.53 MB / 414.1 MB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 2: ctrlGEN.TGOV.firstOrderLim.G.y >= 0.0 and ctrlGEN.TGOV.firstOrderLim.I.y > ctrlGEN.TGOV.firstOrderLim.lim.uMax or ctrlGEN.TGOV.firstOrderLim.G.y <= 0.0 and ctrlGEN.TGOV.firstOrderLim.I.y < ctrlGEN.TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 3: ctrlGEN.AVR.firstOrderLim.G.y >= 0.0 and ctrlGEN.AVR.firstOrderLim.I.y > ctrlGEN.AVR.firstOrderLim.lim.uMax or ctrlGEN.AVR.firstOrderLim.G.y <= 0.0 and ctrlGEN.AVR.firstOrderLim.I.y < ctrlGEN.AVR.firstOrderLim.lim.uMin. Error: Internal error SimCode DAEmode: The model PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithControlledGen could not be translated