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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002085/0.002085, allocations: 108.1 kB / 19.45 MB, free: 2.574 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.002542/0.002542, allocations: 201.2 kB / 22.7 MB, free: 5.484 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.425/1.425, allocations: 207.6 MB / 233.4 MB, free: 11 MB / 190.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.08263/0.08263, allocations: 14.4 MB / 299.9 MB, free: 7.777 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_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1500,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_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.002163/0.002163, allocations: 71.88 kB / 423.5 MB, free: 36.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09523, allocations: 52.85 MB / 476.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01821/0.1134, allocations: 16.04 MB / 492.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01264/0.1261, allocations: 6.873 MB / 499.3 MB, free: 8.938 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.1289, allocations: 67.62 kB / 499.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.1313, allocations: 0.8339 MB / 0.4884 GB, free: 8.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007657/0.139, allocations: 2.658 MB / 0.491 GB, free: 5.387 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.1426, allocations: 1.558 MB / 0.4925 GB, free: 3.828 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2662:11-2662:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.007797/0.1504, allocations: 5.079 MB / 0.4975 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.1515, allocations: 0.4991 MB / 0.498 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003154/0.1547, allocations: 1.775 MB / 0.4997 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00341/0.1581, allocations: 1.844 MB / 0.5015 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006265/0.1587, allocations: 291.9 kB / 0.5018 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0021/0.1608, allocations: 0.7028 MB / 0.5025 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006492/0.1615, allocations: 0.6264 MB / 0.5031 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.1638, allocations: 1.648 MB / 0.5047 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007426/0.1712, allocations: 4.238 MB / 0.5089 GB, free: 3.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1712, allocations: 0 / 0.5089 GB, free: 3.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1712, allocations: 0 / 0.5089 GB, free: 3.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.069e-05/0.1713, allocations: 0 / 0.5089 GB, free: 3.047 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.01428/0.1856, allocations: 4.267 MB / 0.513 GB, free: 14.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.335e-05/0.1857, allocations: 11.98 kB / 0.513 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.1873, allocations: 426.8 kB / 0.5134 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004212/0.1915, allocations: 1.959 MB / 0.5154 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.1917, allocations: 164.4 kB / 0.5155 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003349/0.192, allocations: 223.9 kB / 0.5157 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003992/0.196, allocations: 2.069 MB / 0.5177 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.196, allocations: 3.938 kB / 0.5177 GB, free: 9.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.1962, allocations: 84 kB / 0.5178 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.1963, allocations: 51.94 kB / 0.5179 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003882/0.2001, allocations: 1.912 MB / 0.5197 GB, free: 7.68 MB / 398.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.2375/0.4377, allocations: 12.22 MB / 0.5317 GB, free: 55.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003932/0.4416, allocations: 2.523 MB / 0.5341 GB, free: 53.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.443, allocations: 0.7379 MB / 0.5349 GB, free: 53.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.4432, allocations: 34.66 kB / 0.5349 GB, free: 53.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.4432, allocations: 53.55 kB / 0.535 GB, free: 53.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 4.518e-06/0.4432, allocations: 1.906 kB / 0.535 GB, free: 53.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01099/0.4542, allocations: 3.407 MB / 0.5383 GB, free: 52.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.4543, allocations: 177.8 kB / 0.5384 GB, free: 52.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/0.4581, allocations: 1.881 MB / 0.5403 GB, free: 51.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.4583, allocations: 67.14 kB / 0.5404 GB, free: 51.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007216/0.459, allocations: 1.123 MB / 0.5414 GB, free: 50.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006097/0.4596, allocations: 0.7189 MB / 0.5421 GB, free: 50.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006395/0.4603, allocations: 478.3 kB / 0.5426 GB, free: 50.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.4603, allocations: 302.5 kB / 0.5429 GB, free: 49.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.4619, allocations: 0.8422 MB / 0.5437 GB, free: 49.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/0.4638, allocations: 1.469 MB / 0.5452 GB, free: 48.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/0.4668, allocations: 2.216 MB / 0.5473 GB, free: 46.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4668, allocations: 3.969 kB / 0.5473 GB, free: 46.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.008057/0.4749, allocations: 3.768 MB / 0.551 GB, free: 45.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.4749, allocations: 11.09 kB / 0.551 GB, free: 45.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.4749, allocations: 19.28 kB / 0.551 GB, free: 45.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008468/0.4834, allocations: 1.79 MB / 0.5528 GB, free: 44.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002273/0.4857, allocations: 0.535 MB / 0.5533 GB, free: 44.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02277/0.5085, allocations: 21.39 MB / 0.5742 GB, free: 22.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/0.5114, allocations: 280.7 kB / 0.5745 GB, free: 21.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/0.5116, allocations: 108 kB / 0.5746 GB, free: 21.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001879/0.5135, allocations: 1.075 MB / 0.5756 GB, free: 20.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001313/0.5148, allocations: 1.357 MB / 0.5769 GB, free: 19.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002312/0.5171, allocations: 2.056 MB / 0.5789 GB, free: 16.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.298e-05/0.5171, allocations: 4 kB / 0.5789 GB, free: 16.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.005583/0.5227, allocations: 2.96 MB / 0.5818 GB, free: 13.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.5227, allocations: 12 kB / 0.5818 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.5227, allocations: 19.94 kB / 0.5819 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006194/0.5289, allocations: 1.272 MB / 0.5831 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/0.5312, allocations: 0.6008 MB / 0.5837 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/0.5465, allocations: 16.56 MB / 0.5999 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003123/0.5497, allocations: 205 kB / 0.6001 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.5498, allocations: 100 kB / 0.6002 GB, free: 9.664 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.0007678/0.5506, allocations: 343.1 kB / 0.6005 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004707/0.5511, allocations: 262.3 kB / 0.6007 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004959/0.556, allocations: 2.089 MB / 0.6028 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/0.5561, allocations: 11.97 kB / 0.6028 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5561, allocations: 0 / 0.6028 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009409/0.557, allocations: 0.5121 MB / 0.6033 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.5573, allocations: 39.98 kB / 0.6033 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.5587, allocations: 71.95 kB / 0.6034 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003031/0.559, allocations: 157.7 kB / 0.6036 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005785/0.5648, allocations: 2.095 MB / 0.6056 GB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0266/0.5914, allocations: 12.88 MB / 0.6182 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001458/0.5928, allocations: 0.6598 MB / 0.6188 GB, free: 6.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002133/0.595, allocations: 1.214 MB / 0.62 GB, free: 5.199 MB / 430.1 MB Notification: Performance of Backend: time 8.12e-07/0.595, allocations: 0 / 0.62 GB, free: 5.199 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01573/0.6107, allocations: 6.758 MB / 0.6266 GB, free: 14.23 MB / 446.1 MB Notification: Performance of SimCode: time 0.01566/0.6264, allocations: 8.825 MB / 0.6352 GB, free: 5.352 MB / 446.1 MB [CodegenCpp.tpl:12297:11-12297: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:12297:11-12297: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: 3.482048532925546] Failed to read output from testmodel.py, exit status != 0: 0.7636741308961064 1.027406666 0.853313254 Calling exit ...