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) 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.3/package.mo", uses=false) 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=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 113.4 kB / 17.09 MB, free: 6.004 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.001004/0.001004, allocations: 192.1 kB / 18.02 MB, free: 5.09 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.311/1.311, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06002/0.06002, allocations: 14.17 MB / 285.4 MB, free: 13.86 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.001498/0.001498, allocations: 62.88 kB / 400 MB, free: 42.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1177, allocations: 50.13 MB / 450.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01828/0.1361, allocations: 15.97 MB / 466.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01474/0.1508, allocations: 6.83 MB / 472.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00415/0.155, allocations: 71.62 kB / 473 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003547/0.1586, allocations: 0.826 MB / 473.8 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.1687, allocations: 2.537 MB / 476.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00447/0.1732, allocations: 1.546 MB / 477.9 MB, free: 15.67 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2652:11-2652:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.009052/0.1823, allocations: 5.095 MB / 483 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.1842, allocations: 0.7451 MB / 483.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003587/0.1878, allocations: 1.771 MB / 485.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003671/0.1915, allocations: 1.848 MB / 487.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.1926, allocations: 288 kB / 487.6 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.1954, allocations: 0.6989 MB / 488.3 MB, free: 5.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001141/0.1965, allocations: 0.6302 MB / 489 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004106/0.2007, allocations: 1.644 MB / 490.6 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009304/0.21, allocations: 4.221 MB / 494.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.2101, allocations: 0 / 494.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.2101, allocations: 0 / 494.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002544/0.2103, allocations: 0 / 494.8 MB, free: 14.65 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.01776/0.2281, allocations: 4.181 MB / 499 MB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.072e-05/0.2282, allocations: 8.031 kB / 499 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.2313, allocations: 417 kB / 499.4 MB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007258/0.2385, allocations: 1.938 MB / 0.4896 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002368/0.2388, allocations: 168.3 kB / 0.4898 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008308/0.2397, allocations: 227.8 kB / 0.49 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006844/0.2465, allocations: 2.071 MB / 0.492 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.848e-05/0.2466, allocations: 3.938 kB / 0.492 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003506/0.247, allocations: 84 kB / 0.4921 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.513e-05/0.2471, allocations: 48 kB / 0.4921 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005568/0.2527, allocations: 1.92 MB / 0.494 GB, free: 3.391 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.02689/0.2796, allocations: 12.21 MB / 0.5059 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0061/0.2857, allocations: 2.649 MB / 0.5085 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/0.2879, allocations: 0.8144 MB / 0.5093 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/0.2881, allocations: 22 kB / 0.5093 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/0.2881, allocations: 52.56 kB / 0.5094 GB, free: 2.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 7.324e-06/0.2882, allocations: 4 kB / 0.5094 GB, free: 2.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.01424/0.3024, allocations: 3.41 MB / 0.5127 GB, free: 14.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.3026, allocations: 180.2 kB / 0.5129 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004413/0.307, allocations: 1.868 MB / 0.5147 GB, free: 12.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000432/0.3075, allocations: 69.7 kB / 0.5148 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.3086, allocations: 1.096 MB / 0.5159 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00099/0.3096, allocations: 0.6816 MB / 0.5165 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009625/0.3105, allocations: 485.4 kB / 0.517 GB, free: 10.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3107, allocations: 317 kB / 0.5173 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.3125, allocations: 0.8329 MB / 0.5181 GB, free: 9.355 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002332/0.3148, allocations: 1.463 MB / 0.5195 GB, free: 7.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003908/0.3187, allocations: 2.212 MB / 0.5217 GB, free: 5.168 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.14e-05/0.3188, allocations: 4 kB / 0.5217 GB, free: 5.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009757/0.3285, allocations: 3.778 MB / 0.5254 GB, free: 1.301 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.3286, allocations: 12 kB / 0.5254 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.333e-05/0.3286, allocations: 23.94 kB / 0.5254 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3079/0.6365, allocations: 1.782 MB / 0.5272 GB, free: 78.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/0.639, allocations: 0.5364 MB / 0.5277 GB, free: 78.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02705/0.6661, allocations: 21.34 MB / 0.5485 GB, free: 62.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003691/0.6698, allocations: 274.3 kB / 0.5488 GB, free: 62.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002367/0.6701, allocations: 103.2 kB / 0.5489 GB, free: 62.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002562/0.6726, allocations: 1.074 MB / 0.5499 GB, free: 62.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001892/0.6745, allocations: 1.357 MB / 0.5513 GB, free: 61.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003113/0.6777, allocations: 2.054 MB / 0.5533 GB, free: 59.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.482e-05/0.6777, allocations: 8.344 kB / 0.5533 GB, free: 59.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.006649/0.6843, allocations: 2.964 MB / 0.5562 GB, free: 58.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.6844, allocations: 11.91 kB / 0.5562 GB, free: 58.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.6844, allocations: 15.88 kB / 0.5562 GB, free: 58.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006121/0.6905, allocations: 1.27 MB / 0.5574 GB, free: 58.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/0.6928, allocations: 0.6102 MB / 0.558 GB, free: 58.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.705, allocations: 16.56 MB / 0.5742 GB, free: 42.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/0.7077, allocations: 194.8 kB / 0.5744 GB, free: 42.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.7079, allocations: 105.4 kB / 0.5745 GB, free: 42.71 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.0007936/0.7087, allocations: 327.5 kB / 0.5748 GB, free: 42.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005187/0.7092, allocations: 253.3 kB / 0.575 GB, free: 42.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.7134, allocations: 2.109 MB / 0.5771 GB, free: 41.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/0.7134, allocations: 9.938 kB / 0.5771 GB, free: 41.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.7135, allocations: 7.625 kB / 0.5771 GB, free: 41.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008329/0.7143, allocations: 0.5015 MB / 0.5776 GB, free: 40.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/0.7145, allocations: 31.38 kB / 0.5776 GB, free: 40.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.7158, allocations: 82.83 kB / 0.5777 GB, free: 40.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.716, allocations: 146.5 kB / 0.5778 GB, free: 40.83 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004476/0.7205, allocations: 2.089 MB / 0.5799 GB, free: 39.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01975/0.7403, allocations: 12.83 MB / 0.5924 GB, free: 26.45 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001071/0.7414, allocations: 0.6989 MB / 0.5931 GB, free: 25.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001463/0.7429, allocations: 1.21 MB / 0.5943 GB, free: 24.53 MB / 414.1 MB Notification: Performance of Backend: time 8.01e-07/0.7429, allocations: 0 / 0.5943 GB, free: 24.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0123/0.7552, allocations: 7.025 MB / 0.6011 GB, free: 17.29 MB / 414.1 MB Notification: Performance of SimCode: time 0.00966/0.7649, allocations: 8.678 MB / 0.6096 GB, free: 8.57 MB / 414.1 MB [CodegenCpp.tpl:12250:11-12250: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:12250:11-12250: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