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.001442/0.001442, allocations: 108 kB / 16.27 MB, free: 6.406 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.001371/0.001371, allocations: 192 kB / 17.21 MB, free: 5.973 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.441/1.441, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06596/0.06596, allocations: 14.17 MB / 284.6 MB, free: 13.95 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.001549/0.001549, allocations: 67.89 kB / 347.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2107, allocations: 50.14 MB / 398 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01151/0.2222, allocations: 15.94 MB / 414 MB, free: 35.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009135/0.2314, allocations: 6.843 MB / 420.8 MB, free: 28.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002251/0.2337, allocations: 71.62 kB / 420.9 MB, free: 28.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.2355, allocations: 0.826 MB / 421.7 MB, free: 27.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005149/0.2407, allocations: 2.538 MB / 424.2 MB, free: 25.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.2429, allocations: 1.537 MB / 425.8 MB, free: 23.63 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFFunction.mo:2647:11-2647:130:writable] Error: Internal error NFFunction.Function.getBody2 got function with external section (not algorithm section) Notification: Performance of NFFlatten.flatten: time 0.004017/0.2469, allocations: 5.057 MB / 430.8 MB, free: 18.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008287/0.2478, allocations: 0.7528 MB / 431.6 MB, free: 17.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.2493, allocations: 1.74 MB / 433.3 MB, free: 16.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.2508, allocations: 1.844 MB / 435.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003762/0.2512, allocations: 288 kB / 435.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.2524, allocations: 0.6989 MB / 436.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003269/0.2527, allocations: 0.6303 MB / 436.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.2538, allocations: 1.648 MB / 438.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002809/0.2566, allocations: 4.042 MB / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2566, allocations: 0 / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2566, allocations: 0 / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.277e-05/0.2567, allocations: 0 / 442.5 MB, free: 6.855 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: 507 * Number of variables: 507 Notification: Performance of Generate backend data structure: time 0.0112/0.2679, allocations: 4.207 MB / 446.7 MB, free: 2.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2679, allocations: 8.031 kB / 446.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/0.2692, allocations: 409 kB / 447.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/0.2718, allocations: 1.879 MB / 449 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.555e-05/0.2718, allocations: 164.4 kB / 449.1 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003116/0.2722, allocations: 227.9 kB / 449.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003458/0.2756, allocations: 2.072 MB / 451.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.2757, allocations: 7.938 kB / 451.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.2759, allocations: 87.98 kB / 451.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.2759, allocations: 48 kB / 451.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.2794, allocations: 1.916 MB / 453.5 MB, free: 11.63 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.01905/0.2984, allocations: 12.29 MB / 465.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004201/0.3027, allocations: 2.641 MB / 468.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.3041, allocations: 0.8105 MB / 469.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-05/0.3043, allocations: 25.98 kB / 469.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.3043, allocations: 52.56 kB / 469.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=194): time 4.058e-06/0.3043, allocations: 7.938 kB / 469.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.009992/0.3143, allocations: 3.414 MB / 472.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.812e-05/0.3144, allocations: 176.2 kB / 472.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.3175, allocations: 1.876 MB / 474.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001866/0.3177, allocations: 65.7 kB / 474.8 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009106/0.3186, allocations: 1.096 MB / 475.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007067/0.3193, allocations: 0.6854 MB / 476.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007568/0.3201, allocations: 485.5 kB / 477.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.3202, allocations: 309.1 kB / 477.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.3219, allocations: 0.8329 MB / 478.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.324, allocations: 1.478 MB / 479.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00363/0.3277, allocations: 2.205 MB / 481.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/0.3277, allocations: 8 kB / 481.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009553/0.3373, allocations: 3.782 MB / 485.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.3373, allocations: 14.66 kB / 485.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.3374, allocations: 12 kB / 485.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009444/0.3468, allocations: 1.824 MB / 487.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/0.3492, allocations: 0.5343 MB / 488.1 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02749/0.3768, allocations: 21.39 MB / 0.4975 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/0.3797, allocations: 269.7 kB / 0.4978 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003594/0.38, allocations: 104 kB / 0.4979 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002308/0.3824, allocations: 1.068 MB / 0.4989 GB, free: 14.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001812/0.3842, allocations: 1.361 MB / 0.5002 GB, free: 13.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00305/0.3872, allocations: 2.052 MB / 0.5022 GB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.257e-05/0.3873, allocations: 8 kB / 0.5023 GB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.007088/0.3944, allocations: 2.966 MB / 0.5051 GB, free: 7.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.3944, allocations: 12 kB / 0.5052 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.333e-05/0.3945, allocations: 16.88 kB / 0.5052 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007098/0.4016, allocations: 1.307 MB / 0.5065 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/0.404, allocations: 0.6046 MB / 0.507 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01644/0.4205, allocations: 16.58 MB / 0.5232 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.4233, allocations: 194.4 kB / 0.5234 GB, free: 3.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004188/0.4237, allocations: 100 kB / 0.5235 GB, free: 3.434 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.0008364/0.4245, allocations: 335.6 kB / 0.5238 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008257/0.4254, allocations: 249 kB / 0.5241 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00451/0.4299, allocations: 2.112 MB / 0.5261 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.4299, allocations: 11.97 kB / 0.5261 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4299, allocations: 4 kB / 0.5262 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.4311, allocations: 0.4976 MB / 0.5266 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004598/0.4316, allocations: 39.98 kB / 0.5267 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/0.4331, allocations: 71.95 kB / 0.5267 GB, free: 80 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1841/0.6172, allocations: 145.2 kB / 0.5269 GB, free: 122.2 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005086/0.6223, allocations: 2.099 MB / 0.5289 GB, free: 122 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02275/0.6451, allocations: 12.83 MB / 0.5415 GB, free: 117 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001052/0.6462, allocations: 0.6939 MB / 0.5421 GB, free: 116.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001312/0.6475, allocations: 1.217 MB / 0.5433 GB, free: 116.2 MB / 414.1 MB Notification: Performance of Backend: time 4.91e-07/0.6475, allocations: 0 / 0.5433 GB, free: 116.2 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.0111/0.6586, allocations: 7.003 MB / 0.5502 GB, free: 112.1 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.008163/0.6668, allocations: 7.597 MB / 0.5576 GB, free: 104.6 MB / 414.1 MB Notification: Performance of Templates: time 0.06637/0.7332, allocations: 53.79 MB / 0.6101 GB, free: 51.02 MB / 414.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.sim & ./PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat -nls=kinsol -lv=LOG_INIT_HOMOTOPY -abortSlowSimulation -alarm=50 -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe 2>&1)