Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 117.7 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 191.7 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 207.6 MB / 230.5 MB, free: 4.023 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06943/0.06943, allocations: 14.41 MB / 296.7 MB, free: 1.887 MB / 238.1 MB " [Timeout remaining time 180] 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=1500,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") [Timeout 660] "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.002169/0.002169, allocations: 75.89 kB / 418.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.223, allocations: 52.86 MB / 471.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01724/0.2402, allocations: 16.01 MB / 487.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.2522, allocations: 6.869 MB / 494.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001997/0.2542, allocations: 71.56 kB / 494.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002097/0.2563, allocations: 0.826 MB / 495.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006522/0.2628, allocations: 2.659 MB / 498 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003092/0.2659, allocations: 1.543 MB / 499.6 MB, free: 1.465 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2655:11-2655:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.00653/0.2724, allocations: 5.095 MB / 0.4928 GB, free: 12.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008889/0.2733, allocations: 0.4913 MB / 0.4933 GB, free: 11.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.2757, allocations: 1.771 MB / 0.495 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.2781, allocations: 1.848 MB / 0.4968 GB, free: 8.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004432/0.2786, allocations: 284 kB / 0.4971 GB, free: 7.918 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001514/0.2801, allocations: 0.7106 MB / 0.4978 GB, free: 7.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005813/0.2807, allocations: 0.6264 MB / 0.4984 GB, free: 6.578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001668/0.2823, allocations: 1.648 MB / 0.5 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005078/0.2874, allocations: 4.24 MB / 0.5042 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2874, allocations: 0 / 0.5042 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2874, allocations: 0 / 0.5042 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.622e-05/0.2875, allocations: 0 / 0.5042 GB, free: 0.6719 MB / 366.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.0129/0.3004, allocations: 4.271 MB / 0.5083 GB, free: 12.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3004, allocations: 8.031 kB / 0.5083 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001402/0.3018, allocations: 422.8 kB / 0.5087 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003572/0.3054, allocations: 1.959 MB / 0.5107 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.3055, allocations: 164.4 kB / 0.5108 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/0.3059, allocations: 219.9 kB / 0.511 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003748/0.3096, allocations: 2.072 MB / 0.513 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.3097, allocations: 7.875 kB / 0.5131 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/0.3098, allocations: 84 kB / 0.5131 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-05/0.3099, allocations: 48 kB / 0.5132 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003752/0.3136, allocations: 1.916 MB / 0.5151 GB, free: 5.301 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.01952/0.3332, allocations: 12.23 MB / 0.527 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004283/0.3374, allocations: 2.513 MB / 0.5295 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.3389, allocations: 0.7402 MB / 0.5302 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.339, allocations: 33.97 kB / 0.5302 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.339, allocations: 48.56 kB / 0.5303 GB, free: 4.512 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 3.797e-06/0.339, allocations: 0 / 0.5303 GB, free: 4.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01028/0.3493, allocations: 3.407 MB / 0.5336 GB, free: 1.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.3494, allocations: 180.2 kB / 0.5338 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/0.3523, allocations: 1.88 MB / 0.5356 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002044/0.3525, allocations: 65.7 kB / 0.5356 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009849/0.3535, allocations: 1.122 MB / 0.5367 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007884/0.3543, allocations: 0.7126 MB / 0.5374 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007405/0.355, allocations: 485.5 kB / 0.5379 GB, free: 12.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3552, allocations: 305.1 kB / 0.5382 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.3569, allocations: 0.8446 MB / 0.539 GB, free: 11.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.3593, allocations: 1.471 MB / 0.5405 GB, free: 9.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003838/0.3631, allocations: 2.205 MB / 0.5426 GB, free: 7.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.3632, allocations: 8 kB / 0.5426 GB, free: 7.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.01001/0.3732, allocations: 3.768 MB / 0.5463 GB, free: 3.355 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3732, allocations: 16.19 kB / 0.5463 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/0.3732, allocations: 16 kB / 0.5463 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009859/0.3831, allocations: 1.785 MB / 0.5481 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.3854, allocations: 0.5343 MB / 0.5486 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02908/0.4144, allocations: 21.4 MB / 0.5695 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.4172, allocations: 278.3 kB / 0.5698 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.4174, allocations: 104 kB / 0.5699 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002247/0.4196, allocations: 1.072 MB / 0.5709 GB, free: 8.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001891/0.4215, allocations: 1.361 MB / 0.5722 GB, free: 6.949 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003139/0.4247, allocations: 2.056 MB / 0.5742 GB, free: 4.645 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.658e-06/0.4247, allocations: 4 kB / 0.5742 GB, free: 4.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.006714/0.4314, allocations: 2.964 MB / 0.5771 GB, free: 1.598 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.4314, allocations: 12 kB / 0.5771 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.4314, allocations: 16 kB / 0.5772 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007285/0.4387, allocations: 1.273 MB / 0.5784 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/0.4412, allocations: 0.6046 MB / 0.579 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/0.4588, allocations: 16.57 MB / 0.5952 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002556/0.4614, allocations: 194.9 kB / 0.5954 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.4616, allocations: 99.98 kB / 0.5955 GB, free: 13.39 MB / 478.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.0005806/0.4621, allocations: 339.5 kB / 0.5958 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004821/0.4626, allocations: 258.4 kB / 0.596 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004617/0.4672, allocations: 2.101 MB / 0.5981 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.4672, allocations: 11.91 kB / 0.5981 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4673, allocations: 4 kB / 0.5981 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009642/0.4682, allocations: 0.5068 MB / 0.5986 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/0.4685, allocations: 36 kB / 0.5986 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.4699, allocations: 75.89 kB / 0.5987 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.4702, allocations: 153.7 kB / 0.5988 GB, free: 9.875 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005688/0.4758, allocations: 2.092 MB / 0.6009 GB, free: 7.773 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004863/0.4807, allocations: 2.67 MB / 0.6035 GB, free: 5.082 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001278/0.482, allocations: 0.6559 MB / 0.6041 GB, free: 4.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001901/0.4839, allocations: 1.214 MB / 0.6053 GB, free: 3.199 MB / 478.1 MB Notification: Performance of Backend: time 2.61e-07/0.4839, allocations: 0 / 0.6053 GB, free: 3.199 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2017/0.6855, allocations: 6.765 MB / 0.6119 GB, free: 131 MB / 478.1 MB Notification: Performance of SimCode: time 0.008144/0.6937, allocations: 6.527 MB / 0.6183 GB, free: 128 MB / 478.1 MB [CodegenCpp.tpl:12254:11-12254: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:12254:11-12254: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 " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.965188233880326] Failed to read output from testmodel.py, exit status != 0: 0.7712962150108069 0.7789449509999999 0.489403269 Calling exit ...