Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_dev_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.00118/0.00118, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 198.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1663/0.1663, allocations: 16.77 MB / 307.2 MB, free: 14.81 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.88 kB / 371.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2174, allocations: 53.54 MB / 425.3 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.0211/0.2385, allocations: 40.91 MB / 466.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.2511, allocations: 10.48 MB / 476.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002957/0.2541, allocations: 104.7 kB / 476.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.2567, allocations: 1.38 MB / 478.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007689/0.2644, allocations: 3.933 MB / 482.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004929/0.2694, allocations: 2.609 MB / 484.7 MB, free: 13.95 MB / 366.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.009762/0.2791, allocations: 8.619 MB / 493.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003265/0.2824, allocations: 2.137 MB / 495.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004234/0.2867, allocations: 2.911 MB / 498.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004339/0.291, allocations: 3.093 MB / 0.4897 GB, free: 5.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008403/0.2919, allocations: 475.8 kB / 0.4902 GB, free: 5.266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002555/0.2944, allocations: 1.012 MB / 0.4912 GB, free: 5.145 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.2953, allocations: 1.061 MB / 0.4922 GB, free: 4.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002907/0.2982, allocations: 2.859 MB / 0.495 GB, free: 2.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006799/0.305, allocations: 7.002 MB / 0.5019 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.305, allocations: 0 / 0.5019 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.305, allocations: 0 / 0.5019 GB, free: 12.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.621e-05/0.3051, allocations: 0 / 0.5019 GB, free: 12.81 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: 862 * Number of variables: 862 Notification: Performance of Generate backend data structure: time 0.01824/0.3233, allocations: 6.994 MB / 0.5087 GB, free: 5.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3234, allocations: 8.031 kB / 0.5087 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004458/0.3279, allocations: 1.029 MB / 0.5097 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/0.3324, allocations: 3.094 MB / 0.5127 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.3326, allocations: 283.1 kB / 0.513 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004302/0.3331, allocations: 383.8 kB / 0.5134 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005137/0.3382, allocations: 3.992 MB / 0.5173 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.434e-05/0.3383, allocations: 19.81 kB / 0.5173 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002647/0.3386, allocations: 148 kB / 0.5174 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.94e-05/0.3386, allocations: 96 kB / 0.5175 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004736/0.3434, allocations: 3.168 MB / 0.5206 GB, free: 9.035 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.02676/0.3701, allocations: 24.22 MB / 0.5442 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/0.3755, allocations: 3.592 MB / 0.5478 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.3772, allocations: 1.225 MB / 0.549 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.3773, allocations: 51.03 kB / 0.549 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.235e-05/0.3774, allocations: 69.55 kB / 0.5491 GB, free: 10.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=297): time 4.608e-06/0.3774, allocations: 0 / 0.5491 GB, free: 10.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=297): time 0.01318/0.3906, allocations: 5.366 MB / 0.5543 GB, free: 5.195 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.3907, allocations: 218.8 kB / 0.5545 GB, free: 4.934 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004385/0.3951, allocations: 3.665 MB / 0.5581 GB, free: 1.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002702/0.3954, allocations: 97.7 kB / 0.5582 GB, free: 1.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001331/0.3967, allocations: 1.902 MB / 0.56 GB, free: 15.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009947/0.3977, allocations: 1.168 MB / 0.5612 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/0.3996, allocations: 1.532 MB / 0.5627 GB, free: 12.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.684e-05/0.3997, allocations: 305.1 kB / 0.563 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/0.4034, allocations: 2.392 MB / 0.5653 GB, free: 9.789 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004358/0.4078, allocations: 3.32 MB / 0.5686 GB, free: 6.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006467/0.4143, allocations: 4.686 MB / 0.5731 GB, free: 1.309 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-05/0.4143, allocations: 4 kB / 0.5731 GB, free: 1.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01487/0.4292, allocations: 8.445 MB / 0.5814 GB, free: 8.723 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.4292, allocations: 12 kB / 0.5814 GB, free: 8.711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/0.4292, allocations: 12 kB / 0.5814 GB, free: 8.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01115/0.4404, allocations: 2.17 MB / 0.5835 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005699/0.4461, allocations: 1.638 MB / 0.5851 GB, free: 4.848 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1691/0.6152, allocations: 25.91 MB / 0.6104 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005717/0.621, allocations: 0.5987 MB / 0.611 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003981/0.6214, allocations: 273.1 kB / 0.6113 GB, free: 114.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003918/0.6253, allocations: 2.912 MB / 0.6141 GB, free: 113 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003188/0.6285, allocations: 3.202 MB / 0.6172 GB, free: 111.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004837/0.6334, allocations: 4.531 MB / 0.6217 GB, free: 108.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.262e-05/0.6334, allocations: 9.562 kB / 0.6217 GB, free: 108.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=1091) (initialization_lambda0): time 0.01105/0.6444, allocations: 7.628 MB / 0.6291 GB, free: 105.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.6445, allocations: 11.44 kB / 0.6291 GB, free: 105.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.6445, allocations: 12.84 kB / 0.6291 GB, free: 105.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008872/0.6534, allocations: 1.667 MB / 0.6308 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005781/0.6592, allocations: 1.708 MB / 0.6324 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/0.6739, allocations: 21.1 MB / 0.6531 GB, free: 86.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005595/0.6795, allocations: 476.1 kB / 0.6535 GB, free: 86.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004452/0.6799, allocations: 269.1 kB / 0.6538 GB, free: 86.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 9 (GRIDL.componentPF.isSlackBus,GRID.componentPF.isSlackBus,NTLV.componentPF.isSlackBus,GEN.componentPF.isSlackBus,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 (1015): * Single equations (assignments): 1002 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,0,100.0%), (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): 7 systems {(38,0), (10,0), (19,0), (2,0), (2,0), (2,0), (2,0)} Notification: Performance of prepare postOptimizeDAE: time 0.0009029/0.6808, allocations: 0.5321 MB / 0.6543 GB, free: 85.77 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006553/0.6815, allocations: 435 kB / 0.6547 GB, free: 85.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005181/0.6867, allocations: 3.18 MB / 0.6578 GB, free: 84.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.6867, allocations: 13.84 kB / 0.6578 GB, free: 84.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.6867, allocations: 0 / 0.6578 GB, free: 84.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.6881, allocations: 0.8653 MB / 0.6587 GB, free: 83.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005174/0.6886, allocations: 59.41 kB / 0.6587 GB, free: 83.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/0.691, allocations: 155.8 kB / 0.6589 GB, free: 83.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.6913, allocations: 228.5 kB / 0.6591 GB, free: 83.5 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006282/0.6976, allocations: 3.226 MB / 0.6622 GB, free: 82.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005063/0.7026, allocations: 4.03 MB / 0.6662 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001345/0.704, allocations: 1.06 MB / 0.6672 GB, free: 79.87 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00257/0.7066, allocations: 2.247 MB / 0.6694 GB, free: 79 MB / 462.1 MB Notification: Performance of Backend: time 5.81e-07/0.7066, allocations: 0 / 0.6694 GB, free: 79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01936/0.7259, allocations: 13.57 MB / 0.6827 GB, free: 66.78 MB / 462.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.009676/0.7356, allocations: 8.138 MB / 0.6906 GB, free: 59.23 MB / 462.1 MB Notification: Performance of Templates: time 0.2636/0.9993, allocations: 102.1 MB / 0.7903 GB, free: 126.8 MB / 478.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.makefile (rm -f PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; mkfifo PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe >> ../files/PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.sim & ./PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat -abortSlowSimulation -alarm=50 -lv LOG_STATS > PowerGrids_dev_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe 2>&1)