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.005564/0.005564, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001291/0.001291, allocations: 194.9 kB / 16.68 MB, free: 5.969 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08106/0.08106, allocations: 16.67 MB / 307.2 MB, free: 14.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 63.89 kB / 426.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1097, allocations: 53.55 MB / 480.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Controlled.ControlledGridWithReferenceCalculationSat): time 0.2928/0.4026, allocations: 40.89 MB / 0.5087 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.4219, allocations: 10.46 MB / 0.519 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008006/0.43, allocations: 106.7 kB / 0.5191 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006105/0.4361, allocations: 1.388 MB / 0.5204 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01388/0.45, allocations: 3.936 MB / 0.5243 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007923/0.458, allocations: 2.61 MB / 0.5268 GB, free: 5.988 MB / 382.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.01462/0.4726, allocations: 8.668 MB / 0.5353 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004296/0.4769, allocations: 2.139 MB / 0.5374 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005995/0.4829, allocations: 2.926 MB / 0.5402 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006604/0.4896, allocations: 3.09 MB / 0.5432 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001879/0.4915, allocations: 475 kB / 0.5437 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004981/0.4965, allocations: 1.015 MB / 0.5447 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001906/0.4984, allocations: 1.061 MB / 0.5457 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007285/0.5057, allocations: 2.867 MB / 0.5485 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.5182, allocations: 7.155 MB / 0.5555 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.5182, allocations: 0 / 0.5555 GB, free: 3.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5183, allocations: 0 / 0.5555 GB, free: 3.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001747/0.5184, allocations: 0 / 0.5555 GB, free: 3.391 MB / 398.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.024/0.5424, allocations: 7.122 MB / 0.5625 GB, free: 12.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.5425, allocations: 15.97 kB / 0.5625 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005286/0.5478, allocations: 1.048 MB / 0.5635 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007198/0.555, allocations: 3.236 MB / 0.5667 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.5553, allocations: 283.1 kB / 0.5669 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007634/0.5561, allocations: 375.9 kB / 0.5673 GB, free: 7.332 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00817/0.5643, allocations: 3.988 MB / 0.5712 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.247e-05/0.5644, allocations: 19.81 kB / 0.5712 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003911/0.5648, allocations: 148 kB / 0.5713 GB, free: 2.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.639e-05/0.5649, allocations: 92 kB / 0.5714 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006771/0.5716, allocations: 3.172 MB / 0.5745 GB, free: 15.49 MB / 430.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.03788/0.6096, allocations: 24.14 MB / 0.5981 GB, free: 6.395 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006618/0.6162, allocations: 3.6 MB / 0.6016 GB, free: 2.637 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/0.6185, allocations: 1.233 MB / 0.6028 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001698/0.6187, allocations: 41.41 kB / 0.6029 GB, free: 1.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.024e-05/0.6188, allocations: 73.56 kB / 0.6029 GB, free: 1.285 MB / 446.1 MB Notification: Performance of pre-optimization done (n=297): time 5.871e-06/0.6188, allocations: 0 / 0.6029 GB, free: 1.285 MB / 446.1 MB Notification: Performance of matching and sorting (n=297): time 0.01682/0.6356, allocations: 5.387 MB / 0.6082 GB, free: 11.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.6358, allocations: 218.9 kB / 0.6084 GB, free: 11.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005804/0.6416, allocations: 3.666 MB / 0.612 GB, free: 7.898 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005378/0.6422, allocations: 93.7 kB / 0.6121 GB, free: 7.801 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/0.644, allocations: 1.96 MB / 0.614 GB, free: 5.863 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/0.6455, allocations: 1.213 MB / 0.6152 GB, free: 4.664 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002403/0.6479, allocations: 1.541 MB / 0.6167 GB, free: 3.113 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.648, allocations: 301.1 kB / 0.617 GB, free: 2.816 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004446/0.6525, allocations: 2.404 MB / 0.6193 GB, free: 404 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005459/0.658, allocations: 3.305 MB / 0.6225 GB, free: 12.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008335/0.6663, allocations: 4.697 MB / 0.6271 GB, free: 7.918 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.6664, allocations: 4 kB / 0.6271 GB, free: 7.914 MB / 478.1 MB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01754/0.6839, allocations: 8.468 MB / 0.6354 GB, free: 15.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.684, allocations: 8 kB / 0.6354 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.721e-05/0.684, allocations: 16 kB / 0.6354 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0126/0.6966, allocations: 2.185 MB / 0.6376 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007167/0.7038, allocations: 1.627 MB / 0.6391 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03487/0.7387, allocations: 25.91 MB / 0.6644 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008118/0.7469, allocations: 0.6211 MB / 0.665 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009784/0.7479, allocations: 271.9 kB / 0.6653 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006056/0.754, allocations: 2.907 MB / 0.6681 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004949/0.7589, allocations: 3.204 MB / 0.6713 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008414/0.7674, allocations: 4.53 MB / 0.6757 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.93e-05/0.7674, allocations: 4 kB / 0.6757 GB, free: 3.695 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1091) (initialization_lambda0): time 0.01592/0.7834, allocations: 7.659 MB / 0.6832 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.7834, allocations: 8 kB / 0.6832 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.7835, allocations: 16 kB / 0.6832 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009942/0.7934, allocations: 1.66 MB / 0.6848 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007401/0.8008, allocations: 1.709 MB / 0.6865 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02258/0.8234, allocations: 21.09 MB / 0.7071 GB, free: 1.719 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006797/0.8303, allocations: 485.3 kB / 0.7076 GB, free: 1.242 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009823/0.8313, allocations: 268 kB / 0.7078 GB, free: 0.9805 MB / 0.545 GB 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.001207/0.8325, allocations: 0.53 MB / 0.7083 GB, free: 452 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2532/1.086, allocations: 449.9 kB / 0.7088 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008625/1.094, allocations: 3.176 MB / 0.7119 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.096e-05/1.094, allocations: 17.84 kB / 0.7119 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/1.094, allocations: 0.5625 kB / 0.7119 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002697/1.097, allocations: 0.8934 MB / 0.7127 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.098, allocations: 51.78 kB / 0.7128 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/1.101, allocations: 152.6 kB / 0.7129 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004927/1.102, allocations: 220.7 kB / 0.7132 GB, free: 181.1 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007864/1.11, allocations: 3.224 MB / 0.7163 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007869/1.118, allocations: 4.05 MB / 0.7203 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001878/1.12, allocations: 1.057 MB / 0.7213 GB, free: 179.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004099/1.124, allocations: 2.248 MB / 0.7235 GB, free: 178.2 MB / 0.545 GB Notification: Performance of Backend: time 2.655e-06/1.124, allocations: 0 / 0.7235 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0267/1.15, allocations: 13.63 MB / 0.7368 GB, free: 171.8 MB / 0.545 GB Notification: Performance of SimCode: time 0.01515/1.166, allocations: 8.159 MB / 0.7448 GB, free: 167.8 MB / 0.545 GB Notification: Performance of Templates: time 0.2114/1.377, allocations: 99.45 MB / 0.8419 GB, free: 74.31 MB / 0.545 GB 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)