Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase3.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.TestCase3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase3") translateModel(PowerGrids.Examples.ENTSOE.TestCase3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Examples.ENTSOE.TestCase3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 103.5 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.001751/0.001751, allocations: 186.3 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.676/1.676, 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.1042/0.1042, allocations: 14.18 MB / 285.3 MB, free: 13.93 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.003/0.003, allocations: 59.91 kB / 349.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3971, allocations: 50.13 MB / 399.4 MB, free: 48.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.ENTSOE.TestCase3): time 0.02343/0.4206, allocations: 16.17 MB / 415.6 MB, free: 35.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.4404, allocations: 6.859 MB / 422.5 MB, free: 28.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006535/0.447, allocations: 75.56 kB / 422.5 MB, free: 28.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004944/0.4521, allocations: 0.826 MB / 423.4 MB, free: 27.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01509/0.4672, allocations: 2.541 MB / 425.9 MB, free: 24.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006128/0.4734, allocations: 1.546 MB / 427.5 MB, free: 23.29 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.01175/0.4852, allocations: 5.091 MB / 432.5 MB, free: 18.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003278/0.4885, allocations: 0.7763 MB / 433.3 MB, free: 17.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004993/0.4935, allocations: 1.736 MB / 435.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004497/0.4981, allocations: 1.84 MB / 436.9 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001851/0.5, allocations: 284 kB / 437.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003882/0.5039, allocations: 0.6989 MB / 437.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.5053, allocations: 0.6302 MB / 438.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00443/0.5098, allocations: 1.66 MB / 440.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009612/0.5194, allocations: 4.108 MB / 444.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.5195, allocations: 0 / 444.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5196, allocations: 0 / 444.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002227/0.5198, allocations: 4 kB / 444.3 MB, free: 6.379 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: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.0259/0.5457, allocations: 4.27 MB / 448.5 MB, free: 2.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.129e-05/0.5458, allocations: 8.031 kB / 448.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003739/0.5496, allocations: 432.9 kB / 449 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007541/0.5572, allocations: 1.859 MB / 450.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003511/0.5576, allocations: 172 kB / 451 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008297/0.5584, allocations: 220 kB / 451.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007299/0.5657, allocations: 2.121 MB / 453.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.251e-05/0.5659, allocations: 3.938 kB / 453.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002963/0.5662, allocations: 84 kB / 453.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.681e-05/0.5663, allocations: 52 kB / 453.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007761/0.574, allocations: 1.952 MB / 455.4 MB, free: 10.96 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.04105/0.6151, allocations: 12.27 MB / 467.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007299/0.6225, allocations: 2.761 MB / 470.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003012/0.6256, allocations: 0.8658 MB / 471.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001914/0.6258, allocations: 29.97 kB / 471.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003401/0.6292, allocations: 1.1 MB / 472.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=213): time 9.097e-06/0.6293, allocations: 0 / 472.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=214): time 0.03005/0.6593, allocations: 6.162 MB / 478.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002638/0.6597, allocations: 372.1 kB / 479 MB, free: 1.973 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/0.6653, allocations: 1.801 MB / 480.8 MB, free: 140 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007439/0.666, allocations: 73.7 kB / 480.8 MB, free: 60 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.668, allocations: 1.07 MB / 481.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001893/0.6699, allocations: 0.7431 MB / 482.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002091/0.6721, allocations: 469.5 kB / 483.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.6723, allocations: 305.1 kB / 483.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/0.676, allocations: 0.8367 MB / 484.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004227/0.6802, allocations: 1.38 MB / 485.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007276/0.6875, allocations: 2.247 MB / 487.9 MB, free: 8.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.201e-05/0.6876, allocations: 4 kB / 487.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.01796/0.7056, allocations: 3.621 MB / 491.5 MB, free: 4.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.7058, allocations: 63.41 kB / 491.6 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-05/0.7059, allocations: 12 kB / 491.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01847/0.7244, allocations: 1.739 MB / 493.3 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004714/0.7292, allocations: 0.5227 MB / 493.8 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04886/0.7781, allocations: 22 MB / 0.5037 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005366/0.7835, allocations: 135.6 kB / 0.5039 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008065/0.7844, allocations: 103.9 kB / 0.504 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004993/0.7894, allocations: 1.096 MB / 0.505 GB, free: 9.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004195/0.7937, allocations: 1.298 MB / 0.5063 GB, free: 7.891 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006921/0.8006, allocations: 2.11 MB / 0.5084 GB, free: 5.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.795e-05/0.8008, allocations: 4 kB / 0.5084 GB, free: 5.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.01414/0.8149, allocations: 3.117 MB / 0.5114 GB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.8151, allocations: 72.89 kB / 0.5115 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-05/0.8152, allocations: 12 kB / 0.5115 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.8293, allocations: 1.442 MB / 0.5129 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004603/0.834, allocations: 0.5383 MB / 0.5134 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4097/1.244, allocations: 19 MB / 0.532 GB, free: 119.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004213/1.248, allocations: 105.2 kB / 0.5321 GB, free: 119.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005802/1.249, allocations: 98.33 kB / 0.5322 GB, free: 119.6 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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,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 (288): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(3,0,66.7%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%), (2,0,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(38,0), (2,0), (2,0), (2,0), (2,0), (4,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0009981/1.25, allocations: 408.2 kB / 0.5326 GB, free: 119.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/1.251, allocations: 251.3 kB / 0.5328 GB, free: 119.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007697/1.258, allocations: 2.351 MB / 0.5351 GB, free: 119 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.952e-05/1.258, allocations: 12 kB / 0.5351 GB, free: 119 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/1.259, allocations: 3.812 kB / 0.5351 GB, free: 119 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002346/1.261, allocations: 0.4996 MB / 0.5356 GB, free: 118.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008181/1.262, allocations: 42.23 kB / 0.5357 GB, free: 118.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/1.265, allocations: 84.86 kB / 0.5357 GB, free: 118.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006985/1.265, allocations: 162.8 kB / 0.5359 GB, free: 118.7 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00972/1.275, allocations: 2.436 MB / 0.5383 GB, free: 117.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.04367/1.319, allocations: 13.7 MB / 0.5516 GB, free: 111 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002519/1.321, allocations: 0.7765 MB / 0.5524 GB, free: 110.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00313/1.325, allocations: 1.177 MB / 0.5536 GB, free: 109.4 MB / 414.1 MB Notification: Performance of Backend: time 1.132e-06/1.325, allocations: 3.391 kB / 0.5536 GB, free: 109.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.02315/1.348, allocations: 7.569 MB / 0.561 GB, free: 101.7 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.01948/1.367, allocations: 9.182 MB / 0.5699 GB, free: 92.59 MB / 414.1 MB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 2: 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 3: 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.TestCase3 could not be translated