Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase2.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.ENTSOE.TestCase2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase2") translateModel(PowerGrids.Examples.ENTSOE.TestCase2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 106.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.001438/0.001438, allocations: 185.1 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 1.363/1.363, allocations: 205.1 MB / 223.8 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06269/0.06269, allocations: 14.18 MB / 285.3 MB, free: 13.92 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.001599/0.001599, allocations: 59.91 kB / 349.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2616, allocations: 50.14 MB / 399.4 MB, free: 48.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase2): time 0.008512/0.2702, allocations: 8.273 MB / 407.7 MB, free: 42.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006919/0.2772, allocations: 4.031 MB / 411.8 MB, free: 38.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.2787, allocations: 26.84 kB / 411.8 MB, free: 38.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.28, allocations: 413.8 kB / 412.2 MB, free: 38.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003949/0.284, allocations: 1.496 MB / 413.7 MB, free: 37.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001796/0.2858, allocations: 0.8443 MB / 414.5 MB, free: 36.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.2886, allocations: 2.512 MB / 417 MB, free: 33.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006355/0.2892, allocations: 350.6 kB / 417.4 MB, free: 33.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2905, allocations: 0.8796 MB / 418.3 MB, free: 32.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.2919, allocations: 0.9219 MB / 419.2 MB, free: 31.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004729/0.2924, allocations: 156 kB / 419.3 MB, free: 31.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.2937, allocations: 439.7 kB / 419.8 MB, free: 30.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003623/0.2941, allocations: 350.7 kB / 420.1 MB, free: 30.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009581/0.2951, allocations: 0.8357 MB / 420.9 MB, free: 29.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002257/0.2974, allocations: 2.118 MB / 423.1 MB, free: 27.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2974, allocations: 3.938 kB / 423.1 MB, free: 27.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2974, allocations: 4 kB / 423.1 MB, free: 27.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.376e-05/0.2974, allocations: 0 / 423.1 MB, free: 27.66 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.005909/0.3034, allocations: 2.252 MB / 425.3 MB, free: 25.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.3034, allocations: 8.031 kB / 425.3 MB, free: 25.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005825/0.304, allocations: 199 kB / 425.5 MB, free: 25.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.3055, allocations: 1.006 MB / 426.5 MB, free: 24.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.296e-05/0.3056, allocations: 82.38 kB / 426.6 MB, free: 24.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.3057, allocations: 119.9 kB / 426.7 MB, free: 23.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3073, allocations: 1.05 MB / 427.8 MB, free: 22.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.3073, allocations: 0 / 427.8 MB, free: 22.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.3074, allocations: 40 kB / 427.8 MB, free: 22.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3074, allocations: 24 kB / 427.8 MB, free: 22.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.3091, allocations: 0.9797 MB / 428.8 MB, free: 21.76 MB / 318.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.007582/0.3167, allocations: 5.736 MB / 434.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.3185, allocations: 1.288 MB / 435.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006883/0.3192, allocations: 464.1 kB / 436.3 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.674e-05/0.3193, allocations: 16.98 kB / 436.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3194, allocations: 47.56 kB / 436.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=106): time 3.516e-06/0.3194, allocations: 0 / 436.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=107): time 0.00781/0.3272, allocations: 3.323 MB / 439.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.3273, allocations: 141.5 kB / 439.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.3284, allocations: 0.9578 MB / 440.8 MB, free: 9.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.3285, allocations: 53.7 kB / 440.8 MB, free: 9.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.3288, allocations: 0.5048 MB / 441.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002331/0.3291, allocations: 382.5 kB / 441.7 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/0.3294, allocations: 279.4 kB / 442 MB, free: 7.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.337e-05/0.3295, allocations: 301.1 kB / 442.3 MB, free: 7.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008299/0.3303, allocations: 0.5162 MB / 442.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009335/0.3312, allocations: 0.7388 MB / 443.5 MB, free: 6.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.3329, allocations: 1.128 MB / 444.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3329, allocations: 7.938 kB / 444.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004677/0.3376, allocations: 2.097 MB / 446.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3376, allocations: 11.94 kB / 446.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3376, allocations: 4.438 kB / 446.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005375/0.343, allocations: 1.129 MB / 447.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.3444, allocations: 331.5 kB / 448.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01669/0.3611, allocations: 17.49 MB / 465.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.3626, allocations: 67.95 kB / 465.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.674e-05/0.3627, allocations: 47.98 kB / 465.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001177/0.3639, allocations: 0.6523 MB / 466.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008856/0.3647, allocations: 0.6685 MB / 467.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001497/0.3663, allocations: 1.015 MB / 468.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/0.3663, allocations: 96 / 468.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=187) (initialization_lambda0): time 0.00371/0.37, allocations: 1.721 MB / 469.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.37, allocations: 5.875 kB / 469.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.37, allocations: 4 kB / 469.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004928/0.375, allocations: 0.9172 MB / 470.8 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3765, allocations: 351.6 kB / 471.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/0.3884, allocations: 13.62 MB / 484.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.3898, allocations: 55.89 kB / 484.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3899, allocations: 51.98 kB / 484.9 MB, free: 9.781 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (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 (165): * Single equations (assignments): 154 * 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): 4 systems {(3,0,66.7%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 7 systems {(7,0), (2,0), (2,0), (4,0), (2,0), (2,0), (4,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0003746/0.3903, allocations: 256.7 kB / 485.1 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.3905, allocations: 126.4 kB / 485.3 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002796/0.3933, allocations: 1.265 MB / 486.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.3934, allocations: 11.97 kB / 486.5 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3934, allocations: 0 / 486.5 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007613/0.3941, allocations: 295.4 kB / 486.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.3944, allocations: 20 kB / 486.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008391/0.3953, allocations: 55.95 kB / 486.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.3955, allocations: 96.78 kB / 487 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00337/0.3988, allocations: 1.297 MB / 488.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01616/0.415, allocations: 8.49 MB / 496.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008116/0.4159, allocations: 423.8 kB / 497.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008705/0.4168, allocations: 0.6278 MB / 497.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of Backend: time 5.31e-07/0.4168, allocations: 4 kB / 497.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008794/0.4256, allocations: 4.788 MB / 0.4908 GB, free: 7.57 MB / 382.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.007349/0.433, allocations: 5.346 MB / 0.4961 GB, free: 2.172 MB / 382.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.ENTSOE.TestCase2 could not be translated