Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat") translateModel(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="PowerGrids_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.001574/0.001574, allocations: 116 kB / 16.42 MB, free: 6.488 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.00165/0.00165, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.256/1.256, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06231/0.06231, allocations: 14.18 MB / 284.8 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.002425/0.002425, allocations: 75.5 kB / 399.3 MB, free: 42.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08996, allocations: 50.12 MB / 449.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.01567/0.1057, allocations: 15.96 MB / 465.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.1171, allocations: 6.83 MB / 472.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002242/0.1193, allocations: 71.56 kB / 472.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002398/0.1218, allocations: 0.8338 MB / 473.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006608/0.1284, allocations: 2.642 MB / 475.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003125/0.1316, allocations: 1.547 MB / 477.3 MB, free: 15.56 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.00583/0.1374, allocations: 5.088 MB / 482.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.1386, allocations: 0.7529 MB / 483.2 MB, free: 9.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002309/0.1409, allocations: 1.771 MB / 484.9 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002461/0.1434, allocations: 1.844 MB / 486.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005902/0.144, allocations: 288 kB / 487.1 MB, free: 5.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.1456, allocations: 0.6989 MB / 487.8 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005916/0.1463, allocations: 0.6302 MB / 488.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001915/0.1482, allocations: 1.648 MB / 490 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004591/0.1528, allocations: 4.225 MB / 494.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1528, allocations: 0 / 494.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1528, allocations: 0 / 494.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.842e-05/0.1529, allocations: 0 / 494.3 MB, free: 14.53 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.01284/0.1657, allocations: 4.177 MB / 498.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1658, allocations: 8.031 kB / 498.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.1674, allocations: 413 kB / 498.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003632/0.171, allocations: 1.938 MB / 0.4891 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.1712, allocations: 164.4 kB / 0.4892 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004005/0.1716, allocations: 231.8 kB / 0.4894 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003729/0.1753, allocations: 2.071 MB / 0.4915 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.1754, allocations: 3.938 kB / 0.4915 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.1755, allocations: 84 kB / 0.4915 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.1756, allocations: 51.98 kB / 0.4916 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003613/0.1792, allocations: 1.912 MB / 0.4935 GB, free: 3.285 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.01814/0.1974, allocations: 12.22 MB / 0.5054 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004089/0.2015, allocations: 2.645 MB / 0.508 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.2029, allocations: 0.8183 MB / 0.5088 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.301e-05/0.203, allocations: 22 kB / 0.5088 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.203, allocations: 52.56 kB / 0.5089 GB, free: 2.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=194): time 4.217e-06/0.2031, allocations: 0 / 0.5089 GB, free: 2.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=194): time 0.009638/0.2127, allocations: 3.414 MB / 0.5122 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.2128, allocations: 176.2 kB / 0.5124 GB, free: 14.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002671/0.2155, allocations: 1.872 MB / 0.5142 GB, free: 12.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.2157, allocations: 73.7 kB / 0.5143 GB, free: 12.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008298/0.2165, allocations: 1.089 MB / 0.5153 GB, free: 11.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006609/0.2172, allocations: 0.6854 MB / 0.516 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006816/0.2179, allocations: 489.4 kB / 0.5165 GB, free: 10.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.218, allocations: 309.1 kB / 0.5167 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.2196, allocations: 0.8368 MB / 0.5176 GB, free: 9.238 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.2217, allocations: 1.459 MB / 0.519 GB, free: 7.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003517/0.2252, allocations: 2.212 MB / 0.5211 GB, free: 5.055 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.2252, allocations: 4 kB / 0.5212 GB, free: 5.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization): time 0.009107/0.2343, allocations: 3.778 MB / 0.5248 GB, free: 1.188 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.2344, allocations: 15.94 kB / 0.5249 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/0.2344, allocations: 16.91 kB / 0.5249 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1758/0.4102, allocations: 1.811 MB / 0.5266 GB, free: 78.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002303/0.4126, allocations: 0.5331 MB / 0.5272 GB, free: 78.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02332/0.4359, allocations: 21.36 MB / 0.548 GB, free: 62.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/0.4385, allocations: 266 kB / 0.5483 GB, free: 62.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.4387, allocations: 100.8 kB / 0.5484 GB, free: 62.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001854/0.4406, allocations: 1.078 MB / 0.5494 GB, free: 61.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001437/0.442, allocations: 1.36 MB / 0.5508 GB, free: 60.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002467/0.4445, allocations: 2.06 MB / 0.5528 GB, free: 59.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.159e-05/0.4445, allocations: 4.344 kB / 0.5528 GB, free: 59.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=343) (initialization_lambda0): time 0.005662/0.4502, allocations: 2.962 MB / 0.5557 GB, free: 58.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.4502, allocations: 11.62 kB / 0.5557 GB, free: 58.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.4502, allocations: 15.75 kB / 0.5557 GB, free: 58.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006366/0.4566, allocations: 1.303 MB / 0.557 GB, free: 58.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002172/0.4588, allocations: 0.6035 MB / 0.5575 GB, free: 57.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.4698, allocations: 16.56 MB / 0.5737 GB, free: 42.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002273/0.4721, allocations: 193 kB / 0.5739 GB, free: 42.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/0.4723, allocations: 99.98 kB / 0.574 GB, free: 42.55 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.0005464/0.4728, allocations: 341.2 kB / 0.5743 GB, free: 42.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004881/0.4733, allocations: 246.4 kB / 0.5746 GB, free: 42.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003738/0.4771, allocations: 2.111 MB / 0.5766 GB, free: 41.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.4771, allocations: 7.969 kB / 0.5766 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.4771, allocations: 0 / 0.5766 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008125/0.4779, allocations: 0.5095 MB / 0.5771 GB, free: 40.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.4782, allocations: 35.84 kB / 0.5772 GB, free: 40.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.4796, allocations: 70.98 kB / 0.5772 GB, free: 40.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.4798, allocations: 150.8 kB / 0.5774 GB, free: 40.55 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004604/0.4844, allocations: 2.088 MB / 0.5794 GB, free: 39.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003605/0.488, allocations: 2.641 MB / 0.582 GB, free: 36.4 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009605/0.489, allocations: 0.7027 MB / 0.5827 GB, free: 35.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.4904, allocations: 1.21 MB / 0.5839 GB, free: 34.47 MB / 414.1 MB Notification: Performance of Backend: time 1.292e-06/0.4904, allocations: 4 kB / 0.5839 GB, free: 34.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01196/0.5024, allocations: 7.025 MB / 0.5907 GB, free: 27.23 MB / 414.1 MB Notification: Performance of SimCode: time 0.006817/0.5092, allocations: 5.281 MB / 0.5959 GB, free: 21.96 MB / 414.1 MB Notification: Performance of Templates: time 0.07051/0.5797, allocations: 50.13 MB / 0.6448 GB, free: 3.891 MB / 446.1 MB make -j1 -f PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.makefile (rm -f PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; mkfifo PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe >> ../files/PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.sim & ./PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat -nls=kinsol -lv=LOG_INIT_HOMOTOPY -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat.pipe 2>&1)